forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 77
[GPURUN] new binding script uses numa info from: lscpu and rocm-smi #721
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
Open
ronlieb
wants to merge
9
commits into
amd-staging
Choose a base branch
from
amd/dev/rlieberm/AltBind
base: amd-staging
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+926
−697
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
supports flags:
-v:
-vv
-vvv
-taskset: use taskset
-numactl: use numactl(D)
-nobind: use nobind
lscpu numa info
NUMA node0 CPU(s): 0-7
NUMA node1 CPU(s): 8-15
rocm-smi --showtoponuma info
GPU[0] : (Topology) Numa Node: 6
GPU[0] : (Topology) Numa Affinity: 6
GPU[1] : (Topology) Numa Node: 6
GPU[1] : (Topology) Numa Affinity: 6
Collaborator
carlobertolli
approved these changes
Nov 30, 2025
Collaborator
Collaborator
Author
|
next round will move to using amd-smi |
future options:
# -h Print this help message and exit
# -md Set number of desired devices for multi-device mode, default=1
# -s suppress output, often useful in benchmarking
# -q suppress output, quiet, alias of -s, same as GPURUN_VERBOSE=0
# -m use numactl membind to CPUs in same NUMA domain. Note: Allocation
# fails when not enough memory available on these nodes.
# -l use numactl localalloc to CPUs in same NUMA domain. Note: If
# memory cannot be allocated, alloc falls back to other nodes.
# -nr use numactl ROCR_VISIBLE_DEVICES
# -nm use numactl OMPI_COMM_WORLD_LOCAL_RANK
# --version Print version of gpurun and exit
Collaborator
Collaborator
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
supports flags:
-v:
-vv
-vvv
-taskset: use taskset
-numactl: use numactl(D)
-nobind: use nobind
lscpu numa info
NUMA node0 CPU(s): 0-7
NUMA node1 CPU(s): 8-15
rocm-smi --showtoponuma info
GPU[0] : (Topology) Numa Node: 6
GPU[0] : (Topology) Numa Affinity: 6
GPU[1] : (Topology) Numa Node: 6
GPU[1] : (Topology) Numa Affinity: 6