File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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 \
Original file line number Diff line number Diff 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 \
You can’t perform that action at this time.
0 commit comments