Skip cuda array interface creation tests
@@ -457,6 +457,8 @@ max_cuda_array_interface_version = 3
'ver': tuple(range(max_cuda_array_interface_version+1)),
'strides': (False, None, True),
}))
+@pytest.mark.skipif(
+ cupy.cuda.runtime.is_hip, reason='HIP does not support this')
class TestCudaArrayInterface(unittest.TestCase):
@testing.for_all_dtypes()
def test_base(self, dtype):
@@ -514,6 +516,8 @@ class TestCudaArrayInterface(unittest.TestCase):
'ver': tuple(range(1, max_cuda_array_interface_version+1)),
'strides': (False, None, True),
}))
+@pytest.mark.skipif(
+ cupy.cuda.runtime.is_hip, reason='HIP does not support this')
class TestCudaArrayInterfaceMaskedArray(unittest.TestCase):
# TODO(leofang): update this test when masked array is supported
@testing.for_all_dtypes()
@@ -528,6 +532,8 @@ class TestCudaArrayInterfaceMaskedArray(unittest.TestCase):
@testing.slow
@testing.gpu
+@pytest.mark.skipif(
+ cupy.cuda.runtime.is_hip, reason='HIP does not support this')
class TestCudaArrayInterfaceBigArray(unittest.TestCase):
def test_with_over_size_array(self):
# real example from #3009
@@ -544,6 +550,8 @@ class TestCudaArrayInterfaceBigArray(unittest.TestCase):
cupy.get_default_memory_pool().free_all_blocks()
+@pytest.mark.skipif(
+ cupy.cuda.runtime.is_hip, reason='HIP does not support this')
class DummyObjectWithCudaArrayInterface(object):
def __init__(self, a, ver, include_strides=False, mask=None, stream=None):
assert ver in tuple(range(max_cuda_array_interface_version+1))
