Limit the usage of CPUs and GPUs of a process Posted on 2020-07-22 In tech 1CUDA_VISIBLE_DEVICES=0,1 taskset --cpu-list 0,1,2,3 python train.py