def METHOD_NAME(self):
    @cuda.jit
    def foo(r, x):
        r[0] = x + 1
    N = 10
    ary = cuda.device_array(N, dtype=np.float32)
    with override_config('CUDA_WARN_ON_IMPLICIT_COPY', 1):
        with warnings.catch_warnings(record=True) as w:
            foo[1, N](ary, N)
    self.assertEqual(len(w), 0)