cupy / cupy

NumPy & SciPy for GPU
https://cupy.dev
MIT License
9.49k stars 855 forks source link

cuSPARSE test failure on CUDA 11.0~11.2 (Windows) #6816

Closed kmaehashi closed 3 months ago

kmaehashi commented 2 years ago

On Windows, this fails on CUDA 11.2 but not on CUDA 11.3:

python -m pytest -v -k TestSpgemm cupy_tests/test_cusparse.py
cupy_tests\test_cusparse.py::TestSpgemm::test_spgemm_ab[_param_6_{dtype=complex128, shape=(2, 3, 4)}] Windows fatal exception: access violation

Current thread 0x00000a10 (most recent call first):
  File "C:\Development\Python\Python37\lib\site-packages\cupy\cusparse.py", line 1875 in spgemm
  File "C:\Users\chainer\cupy\tests\cupy_tests\test_cusparse.py", line 389 in test_spgemm_ab
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\python.py", line 192 in pytest_pyfunc_call
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\python.py", line 1761 in runtest
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\runner.py", line 166 in pytest_runtest_call
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\runner.py", line 259 in <lambda>
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\runner.py", line 338 in from_call
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\runner.py", line 259 in call_runtest_hook
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\runner.py", line 219 in call_and_report
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\runner.py", line 130 in runtestprotocol
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\runner.py", line 111 in pytest_runtest_protocol
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\main.py", line 347 in pytest_runtestloop
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\main.py", line 322 in _main
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\main.py", line 268 in wrap_session
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\main.py", line 315 in pytest_cmdline_main
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_callers.py", line 39 in _multicall
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_manager.py", line 80 in _hookexec
  File "C:\Development\Python\Python37\lib\site-packages\pluggy\_hooks.py", line 265 in __call__
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\config\__init__.py", line 165 in main
  File "C:\Development\Python\Python37\lib\site-packages\_pytest\config\__init__.py", line 187 in console_main
  File "C:\Development\Python\Python37\lib\site-packages\pytest\__main__.py", line 5 in <module>
  File "C:\Development\Python\Python37\lib\runpy.py", line 85 in _run_code
  File "C:\Development\Python\Python37\lib\runpy.py", line 193 in _run_module_as_main

The test pass if complex128 is removed from parameter.

CUDA 11.0/11.1 seems to have the same issue. https://ci.preferred.jp/cupy.win.cuda110/104829/ https://ci.preferred.jp/cupy.win.cuda111/104835/

kmaehashi commented 3 months ago

Closing as this looks like it has not happened recently.