TRQ-2394. Set CUDA_VISIBLE_DEVICES for jobs that request gpus.