forked from devitocodes/devito
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setup.sh to run the wave setups.
- Loading branch information
1 parent
3a572d0
commit 64f823e
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |