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.
Small local run scripts, wave_2d Operator type fix.
- Loading branch information
1 parent
94b77fe
commit 9c0f64c
Showing
4 changed files
with
56 additions
and
4 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
*.pyc | ||
*.npy | ||
*.npz | ||
|
||
*.json | ||
|
||
|
@@ -11,4 +12,4 @@ docs/_build | |
.ipynb_checkpoints | ||
|
||
devito.egg-info/* | ||
venv | ||
venv |
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,31 @@ | ||
#!/bin/bash | ||
|
||
export DEVITO_LANGUAGE=openmp | ||
export DEVITO_ARCH=cray | ||
export DEVITO_LOGGING=DEBUG | ||
unset DEVITO_AUTOTUNING | ||
|
||
export OMP_PLACES=cores | ||
export OMP_PROC_BIND=true | ||
|
||
get_runtime() { | ||
$@ |& grep 'Operator.*ran' | rev | cut -d ' ' -f2 | rev | ||
} | ||
|
||
echo bench_name,so,threads,Devito,xDSL | ||
for bench in "wave2d_b.py -d 2048 2048 --nt 512" "wave3d_b.py -d 512 512 512 --nt 512" "diffusion_3D_wBCs.py -d 512 512 512 --nt 512" "diffusion_2D_wBCs.py -d 2048 2048 --nt 512" | ||
do | ||
bench_name=$(echo $bench | cut -d ' ' -f1) | ||
for so in 2 4 8 | ||
do | ||
for threads in 1 2 4 8 16 32 | ||
do | ||
export OMP_NUM_THREADS=$threads | ||
# echo OMP_NUM_THREADS=$threads | ||
# python $bench -so $so --devito 1 | ||
devito_time=$(get_runtime python $bench -so $so --devito 1) | ||
xdsl_time=$(get_runtime python $bench -so $so --xdsl 1) | ||
echo $bench_name,$so,$threads,$devito_time,$xdsl_time | ||
done | ||
done | ||
done |
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 | ||
|
||
unset DEVITO_LANGUAGE | ||
export DEVITO_ARCH=cray | ||
export DEVITO_LOGGING=DEBUG | ||
export DEVITO_AUTOTUNING=aggressive | ||
|
||
get_runtime() { | ||
$@ |& grep 'Operator.*ran' | rev | cut -d ' ' -f2 | rev | ||
} | ||
|
||
echo bench_name,so,Devito,xDSL | ||
for bench in "wave2d_b.py -d 2048 2048 --nt 512" "wave3d_b.py -d 512 512 512 --nt 512" "diffusion_3D_wBCs.py -d 512 512 512 --nt 512" "diffusion_2D_wBCs.py -d 2048 2048 --nt 512" | ||
do | ||
bench_name=$(echo $bench | cut -d ' ' -f1) | ||
for so in 2 4 8 | ||
do | ||
devito_time=$(get_runtime python $bench -so $so --devito 1) | ||
xdsl_time=$(get_runtime python $bench -so $so --xdsl 1) | ||
echo $bench_name,$so,$devito_time,$xdsl_time | ||
done | ||
done |
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