You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At one point we were using cuda to set this global variable which did account for CUDA_VISIBLE_DEVICES. However, calling a cuda function in the global scope caused problems with dask and we switched to using NVML #145 which tells you how many devices are available on the machine, but doesn't know anything about CUDA_VISIBLE_DEVICES
We check, if GPUs are available in following line:
core/merlin/core/compat.py
Line 32 in 5dbafa6
If my machine has GPUs, but I want to run in CPU-only mode by setting CUDA_VISIBLE_DEVICE, the Merlin Library still has HAS_GPU=True
Example:
export CUDA_VISIBLE_DEVICES='';python -c 'from dask.distributed.diagnostics import nvml; print(nvml.device_get_count())'
Returns 2 for 2x GPUs. But I set CUDA_VISIBLE_DEVICES to empty
The text was updated successfully, but these errors were encountered: