Skip to content

Commit

Permalink
Add setup.sh to run the wave setups.
Browse files Browse the repository at this point in the history
  • Loading branch information
PapyChacal committed Oct 4, 2023
1 parent 3a572d0 commit 64f823e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions fast/setup.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 64f823e

Please sign in to comment.