diff --git a/scripts/generate.sh b/scripts/generate.sh index e5dbfa1..fbc4fee 100644 --- a/scripts/generate.sh +++ b/scripts/generate.sh @@ -1,8 +1,23 @@ set -e set -x -export CUDA_VISIBLE_DEVICES="0,1,2,3,4,5,6,7" -AVAILABLE_GPUS=(0 1 2 3 4 5 6 7) +# Default num GPUs +NUM_GPUS=8 + +# Function to generate comma-separated list of GPU IDs +generate_gpu_list() { + local num=$1 + local list="" + for ((i=0; i