Update environment variable setting in AutoTP with arc (#11018)
This commit is contained in:
parent
fad1dbaf60
commit
4053a6ef94
2 changed files with 6 additions and 2 deletions
|
|
@ -10,7 +10,9 @@ source $basekit_root/ccl/latest/env/vars.sh --force
|
||||||
|
|
||||||
NUM_GPUS=2 # number of used GPU
|
NUM_GPUS=2 # number of used GPU
|
||||||
export USE_XETLA=OFF
|
export USE_XETLA=OFF
|
||||||
|
if grep -q "Core" /proc/cpuinfo; then
|
||||||
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=2
|
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=2
|
||||||
|
fi
|
||||||
export TORCH_LLM_ALLREDUCE=0 # Different from PVC
|
export TORCH_LLM_ALLREDUCE=0 # Different from PVC
|
||||||
|
|
||||||
mpirun -np $NUM_GPUS --prepend-rank python run.py
|
mpirun -np $NUM_GPUS --prepend-rank python run.py
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,9 @@ source $basekit_root/ccl/latest/env/vars.sh --force
|
||||||
|
|
||||||
NUM_GPUS=2 # number of used GPU
|
NUM_GPUS=2 # number of used GPU
|
||||||
export USE_XETLA=OFF
|
export USE_XETLA=OFF
|
||||||
|
if grep -q "Core" /proc/cpuinfo; then
|
||||||
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=2
|
export SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=2
|
||||||
|
fi
|
||||||
export TORCH_LLM_ALLREDUCE=0 # Different from PVC
|
export TORCH_LLM_ALLREDUCE=0 # Different from PVC
|
||||||
|
|
||||||
mpirun -np $NUM_GPUS --prepend-rank \
|
mpirun -np $NUM_GPUS --prepend-rank \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue