Skip to content

Commit eb88eab

Browse files
author
Emilio Castillo
committed
Added test
1 parent 2fa6aa3 commit eb88eab

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/cupy_tests/core_tests/test_reduction.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,15 @@ def test_invalid_kernel_name(self):
139139
with self.assertRaisesRegex(ValueError, 'Invalid kernel name'):
140140
cupy.ReductionKernel(
141141
'T x', 'T y', 'x', 'a + b', 'y = a', '0', name='1')
142+
143+
144+
@testing.gpu
145+
class TestLargeMultiDimReduction(
146+
ReductionKernelTestBase, unittest.TestCase):
147+
148+
def test_large_dims_keep_kernels(self):
149+
# This test creates a CUDA_ERROR_LAUNCH_OUT_OF_RESOURCES
150+
# if the output array dims are not reduced
151+
shape = (4, 3, 2, 4, 3, 2, 2)
152+
axis = (1, 4, 3, 6)
153+
self.check_int8_sum(shape, axis=axis, keepdims=True)

0 commit comments

Comments
 (0)