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

GPU Mapping #4326

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

WeiqunZhang
Copy link
Member

For perlmutter and frontier, if there are multiple devices available, we will try to map GPUs to the closest core.

For an FFT test on perlmutter using 256 nodes, the correct mapping reduced the run time from 0.172 to 0.127. Note that you can achieve the similar effect with srun ... bash -c "export CUDA_VISIBLE_DEVICES=\$((3-SLURM_LOCALID)); ..." by manually limiting the number of visible devices. But in this commit, we are trying to do this automatically for the user. Also note that MPI appears to crash with gpu-bind=closest on perlmutter. So we need to use gpu-bind=none.

For frontier, you could use gpu-bind=closest. But if your use gpu-bind=none, this commit will try to do the correct mapping for you.

In this commit, we also removed the old machine stuff and added new code for machine detection.

For perlmutter and frontier, if there are multiple device available, we will
try to map GPUs to the closest core.

For an FFT test on perlmutter using 256 nodes, the correct mapping reduced
the run time from 0.172 to 0.127. Note that you can achieve the similar
effect with `srun ... bash -c "export
CUDA_VISIBLE_DEVICES=\$((3-SLURM_LOCALID)); ..."` by manually limiting the
number of visible devices. But in this commit, we are trying to do this
automatically for the user. Also note that MPI appears to crash with
gpu-bind=closest on perlmutter. So we need to use gpu-bind=none.

For frontier, you could use gpu-bind=closest. But if your use gpu-bind=none,
this commit will try to do the correct mapping for you.

In this commit, we also removed the old machin stuff and added new code for
machine detection.
@WeiqunZhang WeiqunZhang requested a review from atmyers February 7, 2025 21:14
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

Successfully merging this pull request may close these issues.

1 participant