Skip to content

Commit 0291ed9

Browse files
committed
update benchmark
1 parent 8d56dc5 commit 0291ed9

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

benchmark/marmousi_2D.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def get_args(args=sys.argv[1:]):
4949
cflags = '-O3 -fPIC -ffast-math -fopenmp \
5050
-fopenmp-targets=nvptx64-nvidia-cuda \
5151
-Xopenmp-target -march=sm_75'
52+
elif language == 'gpu_openacc':
53+
cc = 'pgcc'
54+
cflags = '-O3 -fPIC -acc:gpu -gpu=pinned'
5255
elif language == 'cuda':
5356
cc = 'nvcc'
5457
cflags = '-O3 -gencode arch=compute_75,code=sm_75 \

benchmark/overthrust_3D.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ def read_model(filename):
5656
cflags = '-O3 -fPIC -ffast-math -fopenmp \
5757
-fopenmp-targets=nvptx64-nvidia-cuda \
5858
-Xopenmp-target -march=sm_75'
59+
elif language == 'gpu_openacc':
60+
cc = 'pgcc'
61+
cflags = '-O3 -fPIC -acc:gpu -gpu=pinned'
5962
elif language == 'cuda':
6063
cc = 'nvcc'
6164
cflags = '-O3 -gencode arch=compute_75,code=sm_75 \

0 commit comments

Comments
 (0)