on-internet
← Community

Ignoring `CUDA_VISIBLE_DEVICES` environment variable

Stack Overflow ·

Since CUDA 3.1 it is possible to limit the list of GPUs visible to applicaion by setting CUDA_VISIBLE_DEVICES environment variable. This affects both Runtime API and Driver API (to be sure I've checked it myself). It seems that device filtering is enforced somewher on driver level, and there is no way to ignore it. However, I've encountered one closed source application which seems to somehow ignore this variable and always use device 0, even if we set CUDA_VISIBLE_DEVICES to empty string, which means that appliction should not see any CUDA-capable device. The application in question uses same

Comments

Sign in or sign up to comment and upvote.

No comments yet.