Ray: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
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!"
cc_staff
282

edits

Navigation menu