ertk.cli.util.parallel_jobs_main

ertk.cli.util.parallel_jobs_main = <Command main>

Run all commands specified in the INPUT file(s), splitting the work across multiple CPU threads or GPUs such that each command runs solely on whichever thread/GPU is next available.

Each GPU still has it’s own thread to run processes using CUDA_VISIBLE_DEVICES. Each thread reads from a synchronous queue and runs the command in a shell.