Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
evt_fugx1
dcu_megatron
Commits
cd1a6dfe
Commit
cd1a6dfe
authored
May 20, 2025
by
silencealiang
Browse files
Update launch_with_binding.sh
parent
e3cce568
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
requirements/launch_with_binding.sh
requirements/launch_with_binding.sh
+3
-6
No files found.
requirements/launch_with_binding.sh
View file @
cd1a6dfe
#!/bin/bash
#!/bin/bash
export
HIP_VISIBLE_DEVICES
=
0,1,2,3,4,5,6,7
LOCAL_RANK
=
$1
LOCAL_RANK
=
$1
shift
shift
gpu_map
=(
0 1 2 3 4 5 6 7
)
numa_map
=(
0 1 2 3 4 5 6 7
)
numa_map
=(
0 1 2 3 4 5 6 7
)
GPU_ID
=
${
gpu_map
[
$LOCAL_RANK
]
}
NUMA_ID
=
${
numa_map
[
$LOCAL_RANK
]
}
NUMA_ID
=
${
numa_map
[
$LOCAL_RANK
]
}
numactl
--cpunodebind
=
${
NUMA_ID
}
--membind
=
${
NUMA_ID
}
"
$@
"
export
HIP_VISIBLE_DEVICES
=
${
GPU_ID
}
numactl
--cpunodebind
=
${
NUMA_ID
}
--membind
=
${
NUMA_ID
}
"
$@
"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment