Skip to content

StridedMemoryView constructor tests fail with TypeError #1358

@leofang

Description

@leofang

For some reason this is not caught by our CI 🤔 I need to look into what's missing in our CI tomorrow... @cpcloud could you take a look?

tests/test_utils.py:200: TypeError
======================================================================== short test summary info =========================================================================
FAILED tests/test_utils.py::TestViewGPU::test_args_viewable_as_strided_memory_gpu[in_arr1-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
FAILED tests/test_utils.py::TestViewGPU::test_args_viewable_as_strided_memory_gpu[in_arr2-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
FAILED tests/test_utils.py::TestViewGPU::test_args_viewable_as_strided_memory_gpu[in_arr4-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
FAILED tests/test_utils.py::TestViewGPU::test_strided_memory_view_cpu[in_arr1-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
FAILED tests/test_utils.py::TestViewGPU::test_strided_memory_view_cpu[in_arr2-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
FAILED tests/test_utils.py::TestViewGPU::test_strided_memory_view_cpu[in_arr4-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
FAILED tests/test_utils.py::TestViewGPU::test_strided_memory_view_init[in_arr1-True] - Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
FAILED tests/test_utils.py::TestViewGPU::test_strided_memory_view_init[in_arr2-True] - Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
FAILED tests/test_utils.py::TestViewGPU::test_strided_memory_view_init[in_arr4-True] - Failed: DID NOT WARN. No warnings of type (<class 'DeprecationWarning'>, <class 'PendingDeprecationWarning'>, <class 'FutureWarning'>) were emitted.
FAILED tests/test_utils.py::TestViewCudaArrayInterfaceGPU::test_cuda_array_interface_gpu[in_arr1-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
FAILED tests/test_utils.py::TestViewCudaArrayInterfaceGPU::test_cuda_array_interface_gpu[in_arr2-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
FAILED tests/test_utils.py::TestViewCudaArrayInterfaceGPU::test_cuda_array_interface_gpu[in_arr4-True] - TypeError: Argument 'stream_ptr' has incorrect type (expected int, got cuda.bindings.driver.CUstream)
===================================================================== 12 failed, 77 passed in 1.36s ======================================================================

Metadata

Metadata

Assignees

Labels

P0High priority - Must do!bugSomething isn't workingcuda.coreEverything related to the cuda.core module

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions