Hi all,
Is there any cuda functions that automatically choose one of free gpus?
I have multi-gpus and I allocate one gpu per one program. so everytime I find available gpus using nvidia-smi, and then I choose one using like os.environ[CUDA_VISIBLE_DEVICES]='0'  This is quite uncomfortable, so I want to cuda functions that automatically find free gpu_num and use that.