Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HAS_GPU variable to account for CUDA_VISIBLE_DEVICES #221

Merged

Conversation

oliverholworthy
Copy link
Member

@oliverholworthy oliverholworthy commented Feb 15, 2023

Fixes #220

Update HAS_GPU variable to account for the CUDA_VISIBLE_DEVICES environment variable.

This is to handle the case where this env var is set to an empty string CUDA_VISIBLE_DEVICES="". In this case RAPIDS cudf and other libaries that use CUDA will not detect a GPU.

@karlhigley karlhigley merged commit e3d892e into NVIDIA-Merlin:main Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HAS_GPU does not reflect CUDA VISIBLE DEVICE Settings
2 participants