Skip to content

Commit 6611805

Browse files
enable nrt
1 parent 2f48967 commit 6611805

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

numba_cuda/numba/cuda/tests/test_array_reductions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from numba.tests.support import TestCase, MemoryLeakMixin
66
from numba import cuda
7+
from numba.cuda import config
78

89

910
class TestArrayReductions(MemoryLeakMixin, TestCase):
@@ -14,6 +15,12 @@ class TestArrayReductions(MemoryLeakMixin, TestCase):
1415
def setUp(self):
1516
super(TestArrayReductions, self).setUp()
1617
np.random.seed(42)
18+
self.old_nrt_setting = config.CUDA_ENABLE_NRT
19+
config.CUDA_ENABLE_NRT = True
20+
21+
def tearDown(self):
22+
config.CUDA_ENABLE_NRT = self.old_nrt_setting
23+
super(TestArrayReductions, self).tearDown()
1724

1825
def test_all_basic(self):
1926
def check(arr):

0 commit comments

Comments
 (0)