Skip to content

Commit 3a46d7e

Browse files
committed
Add test for nvcc with -fopenmp flag
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent 8c17386 commit 3a46d7e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/compilers/test_compilers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ def test_nvcc(self):
133133
"""compilers/nvcc"""
134134
argv = [
135135
"nvcc",
136+
"-fopenmp",
136137
"--gpu-architecture=compute_50",
137138
"--gpu-code=compute_50,sm_50,sm_52",
138139
"test.cpp",
@@ -149,7 +150,7 @@ def test_nvcc(self):
149150
defaults = ["__NVCC__", "__CUDACC__"]
150151
for p in passes:
151152
if p.pass_name == "default":
152-
expected = defaults
153+
expected = defaults + ["_OPENMP"]
153154
elif p.pass_name == "50":
154155
expected = defaults + ["__CUDA_ARCH__=500"]
155156
elif p.pass_name == "52":

0 commit comments

Comments
 (0)