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

Need to be able to specify mapping of GPU to local process #473

Closed
maddyscientist opened this issue May 24, 2016 · 2 comments
Closed

Need to be able to specify mapping of GPU to local process #473

maddyscientist opened this issue May 24, 2016 · 2 comments

Comments

@maddyscientist
Copy link
Member

With the advent of NVLink, getting the correct node topology is now more complicated than just ensuring correct NUMA placement of processes for their respective GPUs. For dense GPU systems with multiple NVLinks we need a method to easily map the local process id to GPU device ordinal. Failing to do so will result in sub-optimal use of peer-to-peer bandwidth and message being unnecessarily routed through CPU memory.

@mathiaswagner
Copy link
Member

NVML's setCPUAffinity does not work? Or is the mapping needed on the mpirun level ?

@maddyscientist
Copy link
Member Author

maddyscientist commented Jan 9, 2017

Closing this issue, as this required functionality is trivially obtained from the CUDA_VISIBLE_DEVICES environment variable (the order that devices are listed in this variable corresponds to the order that the CUDA runtime sees the device).

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

No branches or pull requests

2 participants