Skip to content

Commit 18dae59

Browse files
committed
CUDA test_linker.py: fix jitlink.cu path
1 parent 51f914d commit 18dae59

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎numba/cuda/tests/cudadrv/test_linker.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import numpy as np
32
import warnings
43
from numba.cuda.testing import skip_if_mvc_enabled, skip_unless_cc_53, unittest
@@ -213,8 +212,7 @@ def kernel(x):
213212
@skip_if_mvc_enabled('NVRTC not available when ctypes binding is used.')
214213
@TestCase.run_test_in_subprocess(envvars=_NUMBA_NVIDIA_BINDING_0_ENV)
215214
def test_linking_cu_ctypes_unsupported(self):
216-
base = os.path.join("numba", "cuda", "tests")
217-
link = os.path.join(base, 'data', 'jitlink.cu')
215+
link = str(test_data_dir / 'jitlink.cu')
218216
msg = ('Linking CUDA source files is not supported with the ctypes '
219217
'binding')
220218

0 commit comments

Comments
 (0)