diff --git a/scripts/run_benchmark.sh b/scripts/run_benchmark.sh index 7b8589c05a22d26f57ea5d16f2e2e96e9d954e4b..6c0ef4b0ca86a6388df13ce23dc2378c89fe0d97 100644 --- a/scripts/run_benchmark.sh +++ b/scripts/run_benchmark.sh @@ -10,7 +10,7 @@ for nodes in {1..1}; do echo dim ${dim}, nodes ${nodes}, gpus ${gpus}, batch_size ${batch_size}, iteration ${iteration} # For single node - if [ $NUM_NODES -eq 1 ]; then + if [ $nodes -eq 1 ]; then sbatch -o sbatch_out/benchmark_dim${dim}_nodes${nodes}_gpus${gpus}_batchsize${batch_size}_iteration${iteration}.out scripts/benchmark_single_node.sbatch ${dim} ${nodes} ${gpus} ${batch_size} ${iteration} sleep 1 # pause to be kind to the scheduler @@ -36,7 +36,7 @@ for nodes in {1..1}; do echo dim ${dim}, nodes ${nodes}, gpus ${gpus}, batch_size ${batch_size}, iteration ${iteration} # For single node - if [ $NUM_NODES -eq 1 ]; then + if [ $nodes -eq 1 ]; then sbatch -o sbatch_out/benchmark_dim${dim}_nodes${nodes}_gpus${gpus}_batchsize${batch_size}_iteration${iteration}.out scripts/benchmark_single_node.sbatch ${dim} ${nodes} ${gpus} ${batch_size} ${iteration} sleep 1 # pause to be kind to the scheduler