def METHOD_NAME(self):
    @cuda.jit
    def foo(r, x):
        r[0] = x + 1
    N = 10
    arr_f32 = np.zeros(N, dtype=np.float32)
    with override_config('CUDA_WARN_ON_IMPLICIT_COPY', 1):
        with warnings.catch_warnings(record=True) as w:
            foo[1, N](arr_f32, N)
    self.assertEqual(w[0].category, NumbaPerformanceWarning)
    self.assertIn('Host array used in CUDA kernel will incur',
                  str(w[0].message))
    self.assertIn('copy overhead', str(w[0].message))