def test_nvvm_llvm_to_ptx(self):

        def foo(x):
            x[0] = 123

        cukern = compile_kernel(foo, args=(types.int32[::1],), link=())
        llvmir = cukern._func.ptx.llvmir
        ptx = nvvm.llvm_to_ptx(llvmir)
        self.assertIn("foo", ptx.decode('ascii'))
A simple test to exercise nvvm.llvm_to_ptx()
dataset/ETHPy150Open numba/numba/numba/cuda/tests/nocuda/test_nvvm.py/TestNvvmWithoutCuda.test_nvvm_llvm_to_ptx