launch_with_binding.sh 216 Bytes
Newer Older
silencealiang's avatar
silencealiang committed
1
2
#!/bin/bash

wxj's avatar
wxj committed
3
4
5
6
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
"${@:2}"
# LOCAL_RANK=$1
# shift
silencealiang's avatar
silencealiang committed
7

wxj's avatar
wxj committed
8
9
10
# numa_map=(0 1 2 3 4 5 6 7)
# NUMA_ID=${numa_map[$LOCAL_RANK]}
# numactl --cpunodebind=${NUMA_ID} --membind=${NUMA_ID} "$@"