Skip to content

Commit

Permalink
Add a test for issue#135
Browse files Browse the repository at this point in the history
Enriches an existing test by adding a variation, i.e. turn NUMBA_DUMP_LLVM on.
  • Loading branch information
jiel-nv committed Feb 26, 2025
1 parent 3fe4229 commit e52f857
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion numba_cuda/numba/cuda/tests/cudapy/test_debuginfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def kernel(x, y):
three_device_fns(kernel_debug=False, leaf_debug=True)
three_device_fns(kernel_debug=False, leaf_debug=False)

def test_kernel_args_types(self):
def _test_kernel_args_types(self):
sig = (types.int32, types.int32)

@cuda.jit("void(int32, int32)", debug=True, opt=False)
Expand Down Expand Up @@ -298,6 +298,14 @@ def f(x, y):
match = re.compile(pat).search(llvm_ir)
self.assertIsNotNone(match, msg=llvm_ir)

def test_kernel_args_types(self):
self._test_kernel_args_types()

def test_kernel_args_types_dump(self):
# see issue#135
with override_config('DUMP_LLVM', 1):
self._test_kernel_args_types()


if __name__ == '__main__':
unittest.main()

0 comments on commit e52f857

Please sign in to comment.