cc_staff
282
edits
No edit summary |
m (→Multiple Nodes) |
||
Line 94: | Line 94: | ||
## Start Ray cluster Head Node ## | ## Start Ray cluster Head Node ## | ||
ray start --head --node-ip-address=$HEAD_NODE --port=$RAY_PORT --num-cpus=$SLURM_CPUS_PER_TASK --block & | ray start --head --node-ip-address=$HEAD_NODE --port=$RAY_PORT --num-cpus=$SLURM_CPUS_PER_TASK --num-gpus=1 --block & | ||
sleep 10 | sleep 10 | ||
Line 142: | Line 142: | ||
else | else | ||
ray start --address "${HEAD_NODE}:${RAY_PORT}" --num-cpus="${SLURM_CPUS_PER_TASK}" --block | ray start --address "${HEAD_NODE}:${RAY_PORT}" --num-cpus="${SLURM_CPUS_PER_TASK}" --num-gpus=1 --block | ||
sleep 5 | sleep 5 | ||
echo "ray worker started!" | echo "ray worker started!" |