When I submit a SLURM job with the option --gres=gpu:1 to a node with two GPUs, how can I get the ID of the GPU which is allocated for the job? Is there an environment variable for this purpose? The GPUs I'm using are all nvidia GPUs. Thanks.
相关问题
- slurm: use a control node also for computing
- The behavior of __CUDA_ARCH__ macro
- Usage of anonymous functions in arrayfun with GPU
- AMD CPU versus Intel CPU openCL
- Does CUDA allow multiple applications on same gpu
相关文章
- What's the relation between nvidia driver, cud
- How can I use 100% of VRAM on a secondary GPU from
- Running LSTM with multiple GPUs gets “Input and hi
- NVidia CUDA toolkit 7.5.27 failing to install on O
- How to import a trained SVM detector in OpenCV 2.4
- Questions on alternative ways to run 4 parallel jo
- Differences between cl_khr_fp64 and cl_amd_fp64?
- Shared memory matrix multiplication kernel
You can get the GPU id with the environment variable
CUDA_VISIBLE_DEVICES
. This variable is a comma separated list of the GPU ids assigned to the job.