Skip to content

Commit

Permalink
displays progress and fixes index bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngdae committed Jun 5, 2021
1 parent fad55a1 commit fbb4d7c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion figure5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ VA=(1000 2000 5000 5000 50000)
ITER=(6000 15000 35000 45000 30000)

for i in ${!DATA[@]}; do
julia --project ./src/admm_standalone.jl "./data/${DATA[$i]}" ${PQ[$i]} ${VA[$i]} ${ITER[$i]} true > output_gpu1_${DATA[$i]}.txt 2>&1
echo "Solving ${DATA[$i]} . . ."
julia --project ./src/admm_standalone.jl "./data/${DATA[$i]}" ${PQ[$i]} ${VA[$i]} ${ITER[$i]} true > output_gpu1_${DATA[$i]}.txt 2>&1
done

7 changes: 4 additions & 3 deletions figure6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ ITER=(5648 13651 30927 41126 28358)
NGPU=(2 3 4 5 6)

for j in ${!NGPU[@]}; do
for i in ${!DATA[@]}; do
mpirun -np ${j} julia --project ./src/launch_mpi.jl "./data/${DATA[$i]}" ${PQ[$i]} ${VA[$i]} ${ITER[$i]} true > output_gpu${j}_${DATA[$i]}.txt 2>&1
mv br_time_gpu.txt br_time_gpu${j}_${DATA[$i]}.txt
for i in ${!DATA[@]}; do
echo "Solving ${DATA[$i]} using ${NGPU[$j]} GPUs . . ."
mpirun -np ${NGPU[$j]} julia --project ./src/launch_mpi.jl "./data/${DATA[$i]}" ${PQ[$i]} ${VA[$i]} ${ITER[$i]} true > output_gpu${NGPU[$j]}_${DATA[$i]}.txt 2>&1
mv br_time_gpu.txt br_time_gpu${NGPU[$j]}_${DATA[$i]}.txt
done
done
3 changes: 2 additions & 1 deletion figure8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ VA=(1000 2000 5000 5000 50000)
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
echo "Solving ${DATA[$i]} using 40 CPU cores . . ."
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
done

0 comments on commit fbb4d7c

Please sign in to comment.