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

Support for multi-GPU nodes (1: choose one of many available GPUs) #836

Open
valassi opened this issue Apr 10, 2024 · 1 comment
Open

Support for multi-GPU nodes (1: choose one of many available GPUs) #836

valassi opened this issue Apr 10, 2024 · 1 comment

Comments

@valassi
Copy link
Member

valassi commented Apr 10, 2024

Just a reminder, we should do something about nodes with multiple GPUs.

This was for instance asked by Jin for CMS, as he found that one of our condor nodes has 4 GPUs (b9g57n8656.cern.ch).

Presently we simply do cudaSetDevice(0) and hipSetDevice(0) (actually both as gpuSetDevice(0). In any case for the moment the code is meant to only use one GPU at a time, so one option is to keep the code the same, but then have the CUDA/etc specific env variables to select one single GPU as the visible GPU (I believe this is CUDA_VISIBLE_DEVICES, while instead NVIDIA_VISIBLE_DEVICES is for visibility inside docker containers?)

Some interesting reads on multi-GPU

@valassi valassi changed the title Support for multi-GPU nodes? Support for multi-GPU nodes (1: choose one of many available GPUs) Sep 2, 2024
@valassi
Copy link
Member Author

valassi commented Sep 2, 2024

I opened two new issues

Note:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant