From 55a0b6b6eaf2dcaf634c8e59778d3f7376c7d7fb Mon Sep 17 00:00:00 2001 From: Galen Shipman Date: Thu, 16 May 2024 13:00:07 -0600 Subject: [PATCH 1/3] add strong scaling and throughput scripts for Branson --- utils/branson/do_strong_scaling.sh | 14 ++++++++++++++ utils/branson/do_throughput.sh | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100755 utils/branson/do_strong_scaling.sh create mode 100755 utils/branson/do_throughput.sh diff --git a/utils/branson/do_strong_scaling.sh b/utils/branson/do_strong_scaling.sh new file mode 100755 index 00000000..a4d8eca8 --- /dev/null +++ b/utils/branson/do_strong_scaling.sh @@ -0,0 +1,14 @@ +export CALI_CONFIG=sample-report + +cp ../inputs/3D_hohlraum_single_node_cpu.xml . +for s in 10 66 200 +do + sed -i 's/.*<\/photons>/'${s}'000000\<\/photons>/g' 3D_hohlraum_single_node_cpu.xml + #4 12 16 24 32 48 #4 8 16 32 36 64 72 + for i in 4 12 16 24 32 48 96 192 + do + grep photons 3D_hohlraum_single_node_cpu.xml + #mpirun -mca coll basic,self,libnbc -n $i ./BRANSON ./3D_hohlraum_single_node_cpu.xml | tee run.$s.$i.out + srun -n $i -m block:block --hint=nomultithread ./BRANSON ./3D_hohlraum_single_node_cpu.xml | tee run.$s.$i.out + done +done diff --git a/utils/branson/do_throughput.sh b/utils/branson/do_throughput.sh new file mode 100755 index 00000000..0aa853f8 --- /dev/null +++ b/utils/branson/do_throughput.sh @@ -0,0 +1,8 @@ +cp ../inputs/3D_hohlraum_single_node_gpu.xml . +for s in 1 2 3 4 5 6 7 8 9 10 20 30 40 50 66 100 133 200 500 1000 2000 4000 5000 +do + sed -i 's/.*<\/photons>/'${s}'00000\<\/photons>/g' 3D_hohlraum_single_node_gpu.xml + grep photons 3D_hohlraum_single_node_gpu.xml + #mpirun -np 1 ./BRANSON ./3D_hohlraum_single_node_gpu.xml | tee run.$s.out + srun -n 1 ./BRANSON ./3D_hohlraum_single_node_gpu.xml | tee run.$s.out +done From f4c234d8850031dad65265d466ecb959caacc1d3 Mon Sep 17 00:00:00 2001 From: Galen Shipman Date: Fri, 17 May 2024 16:06:57 -0600 Subject: [PATCH 2/3] add script to parse FOM from branson output files into a csv format --- utils/branson/parse-results.sh | 1 + 1 file changed, 1 insertion(+) create mode 100755 utils/branson/parse-results.sh diff --git a/utils/branson/parse-results.sh b/utils/branson/parse-results.sh new file mode 100755 index 00000000..a1114dc4 --- /dev/null +++ b/utils/branson/parse-results.sh @@ -0,0 +1 @@ +grep FOM run.*.out | awk -F '.' '{print $2 " " $3 " " $4 " " $5 }' | awk '{printf "%d\t%d\t%d.%d \n", $1, $2, $7, $8 }' | sort -n --key=1,1 --key=2,2 From eef73b0545aa406aca9008eb7ac65884cbf178af Mon Sep 17 00:00:00 2001 From: "Galen M. Shipman" Date: Fri, 17 May 2024 16:12:13 -0600 Subject: [PATCH 3/3] fixes for strong scaling script --- utils/branson/do_strong_scaling.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/utils/branson/do_strong_scaling.sh b/utils/branson/do_strong_scaling.sh index a4d8eca8..7c1d5be5 100755 --- a/utils/branson/do_strong_scaling.sh +++ b/utils/branson/do_strong_scaling.sh @@ -1,14 +1,17 @@ -export CALI_CONFIG=sample-report -cp ../inputs/3D_hohlraum_single_node_cpu.xml . +input=3D_hohlraum_single_node_cpu.xml +cp ../inputs/3D_hohlraum_single_node.xml ./${input} + +sed -i 's/TRUE<\/use_gpu_transporter>/FALSE<\/use_gpu_transporter>/g' ${input} + for s in 10 66 200 do - sed -i 's/.*<\/photons>/'${s}'000000\<\/photons>/g' 3D_hohlraum_single_node_cpu.xml + sed -i 's/.*<\/photons>/'${s}'000000\<\/photons>/g' ${input} #4 12 16 24 32 48 #4 8 16 32 36 64 72 - for i in 4 12 16 24 32 48 96 192 + for i in 8 32 56 88 112 do - grep photons 3D_hohlraum_single_node_cpu.xml + grep photons ${input} #mpirun -mca coll basic,self,libnbc -n $i ./BRANSON ./3D_hohlraum_single_node_cpu.xml | tee run.$s.$i.out - srun -n $i -m block:block --hint=nomultithread ./BRANSON ./3D_hohlraum_single_node_cpu.xml | tee run.$s.$i.out + srun -n $i -m block:block --hint=nomultithread ./BRANSON ./${input} | tee run.$s.$i.out done done