From fad55a18d131e460c5b9e2fc0bb7c8acb928c130 Mon Sep 17 00:00:00 2001 From: Youngdae Kim Date: Fri, 4 Jun 2021 19:08:36 -0400 Subject: [PATCH] fixes numbers. --- figure6.sh | 2 +- figure8.sh | 2 +- table5.sh | 15 +++++++++++---- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/figure6.sh b/figure6.sh index c0831f2..a92f51f 100755 --- a/figure6.sh +++ b/figure6.sh @@ -24,7 +24,7 @@ export JULIA_MPI_BINARY="system" DATA=("case2868rte" "case6515rte" "case9241pegase" "case13659pegase" "case19402_goc") PQ=(10 20 50 50 500) VA=(1000 2000 5000 5000 50000) -ITER=(6000 15000 35000 45000 30000) +ITER=(5648 13651 30927 41126 28358) NGPU=(2 3 4 5 6) for j in ${!NGPU[@]}; do diff --git a/figure8.sh b/figure8.sh index e11f128..665cf09 100755 --- a/figure8.sh +++ b/figure8.sh @@ -24,7 +24,7 @@ export JULIA_MPI_BINARY="system" DATA=("case2868rte" "case6515rte" "case9241pegase" "case13659pegase" "case19402_goc") PQ=(10 20 50 50 500) VA=(1000 2000 5000 5000 50000) -ITER=(6000 15000 35000 45000 30000) +ITER=(5718 13640 30932 41140 28358) for i in ${!DATA[@]}; do mpirun -np 40 julia --project ./src/launch_mpi.jl "./data/${DATA[$i]}" ${PQ[$i]} ${VA[$i]} ${ITER[$i]} false > output_cpu40_${DATA[$i]}.txt 2>&1 diff --git a/table5.sh b/table5.sh index 099c06b..2ae1ec5 100755 --- a/table5.sh +++ b/table5.sh @@ -8,7 +8,14 @@ export JULIA_CUDA_VERBOSE=1 export JULIA_MPI_BINARY="system" -DATA=("2868rte" "6515rte" "9241pegase" "13659pegase" "19402goc") -for i in ${!DATA[@]}; do - julia --project ./src/load_imbalance.jl "./br_time_gpu_${DATA[$i]}.txt" -done +function usage() { + echo "Usage: ./table5.sh case" + echo " case: the case file containing branch computation time of each GPU" +} + +if [[ $# != 1 ]]; then + usage + exit +fi + +julia --project ./src/load_imbalance.jl $1