Closed Vikho closed 6 months ago
When I use the training script and specifyexport CUDA_VISIBLE_DEVICES=1, the logging shows_cuda:0_, which is inconsistent with the actual usage (indeed using cuda:1). This may cause some confusion for those who are new to GPU deep learning.
export CUDA_VISIBLE_DEVICES=1
_cuda:0_
cuda:1
using CUDA_VISIBLE_DEVICES is a low level alteration, it changes the device enumeration visible to the application so 0 is what the application sees.
When I use the training script and specify
export CUDA_VISIBLE_DEVICES=1
, the logging shows_cuda:0_
, which is inconsistent with the actual usage (indeed usingcuda:1
). This may cause some confusion for those who are new to GPU deep learning.