Skip to content

Commit bd88ff1

Browse files
authored
Add HWLOC_KEEP_NVIDIA_GPU_NUMA_NODES=0 to MPS wrapper script to avoid GPU numa nodes
1 parent f3e2f49 commit bd88ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/running/slurm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ if [[ $SLURM_LOCALID -eq 0 ]]; then
301301
fi
302302

303303
# Set CUDA device
304-
numa_nodes=$(hwloc-calc --physical --intersect NUMAnode $(hwloc-bind --get --taskset))
304+
numa_nodes=$(HWLOC_KEEP_NVIDIA_GPU_NUMA_NODES=0 hwloc-calc --physical --intersect NUMAnode $(hwloc-bind --get --taskset))
305305
export CUDA_VISIBLE_DEVICES=$numa_nodes
306306

307307
# Wait for MPS to start

0 commit comments

Comments
 (0)