From 64f823eb697f82a7e0ab11a1c6aab4d4524a9740 Mon Sep 17 00:00:00 2001 From: Emilien Bauer Date: Wed, 4 Oct 2023 16:01:07 +0100 Subject: [PATCH] Add setup.sh to run the wave setups. --- fast/setup.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 fast/setup.sh diff --git a/fast/setup.sh b/fast/setup.sh new file mode 100755 index 0000000000..622558d25e --- /dev/null +++ b/fast/setup.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +export DEVITO_LANGUAGE=openmp +export DEVITO_ARCH=cray +export DEVITO_LOGGING=DEBUG +unset OMP_NUM_THREADS + +export OMP_PLACES=cores +export OMP_PROC_BIND=true + +get_runtime() { + $@ |& grep 'Operator.*ran' | rev | cut -d ' ' -f2 | rev +} + +echo bench_name,so,Devito,xDSL +for bench in "setup_wave2d.py -d 2048 2048 --nt 512" "setup_wave3d.py -d 512 512 512 --nt 512" +do + for so in 2 4 8 + do + python $bench -so $so + done +done