Cupy: Support cuTENSOR 1.2.1

Created on 30 Sep 2020  路  3Comments  路  Source: cupy/cupy

When using cuTENSOR 1.2.1 the complex64 reduction test fails with C++ exception raised from cuTENSOR.

tests/cupy_tests/test_cutensor.py::TestCuTensor_param_3_{dtype=complex64, tol=1e-06}::test_reduction
terminate called after throwing an instance of 'cutensor_internal_namespace::InternalError'
  what():  scalar type not defined.

This does not happen with cuTENSOR 1.2.0. We should look into details if this is a bug in our side or cuTENSOR.

bug high

All 3 comments

@anaruse Could you confirm if the problem can be reproduced?

The error occurs here as well.
Is this the same error?

$ python -m pytest -r A -x cupy_tests/test_cutensor.py -k reduction
==================================================================================== test session starts =====================================================================================
platform linux -- Python 3.6.8, pytest-5.3.2, py-1.8.1, pluggy-0.13.1
rootdir: /home/anaruse/work/CUPY/cupy, inifile: setup.cfg
collected 75 items / 69 deselected / 6 selected                                                                                                                                              

cupy_tests/test_cutensor.py s..Fatal Python error: Aborted

Current thread 0x00007fb106aed080 (most recent call first):
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/unittest/case.py", line 653 in __call__
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/unittest.py", line 207 in runtest
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/runner.py", line 131 in pytest_runtest_call
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/runner.py", line 207 in <lambda>
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/runner.py", line 234 in from_call
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/runner.py", line 207 in call_runtest_hook
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/runner.py", line 182 in call_and_report
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/runner.py", line 96 in runtestprotocol
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/runner.py", line 81 in pytest_runtest_protocol
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/main.py", line 270 in pytest_runtestloop
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/main.py", line 246 in _main
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/main.py", line 196 in wrap_session
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/main.py", line 239 in pytest_cmdline_main
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/manager.py", line 87 in <lambda>
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/_pytest/config/__init__.py", line 92 in main
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/site-packages/pytest/__main__.py", line 7 in <module>
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/runpy.py", line 85 in _run_code
  File "/home/anaruse/.pyenv/versions/3.6.8/lib/python3.6/runpy.py", line 193 in _run_module_as_main
Aborted (core dumped)
$ python -c "import cupy; cupy.show_config()"
OS                           : Linux-4.15.0-74-generic-x86_64-with-debian-buster-sid
CuPy Version                 : 8.0.0rc1
NumPy Version                : 1.18.1
SciPy Version                : 1.4.1
CUDA Root                    : /usr/local/cuda
CUDA Build Version           : 11010
CUDA Driver Version          : 11010
CUDA Runtime Version         : 11010
cuBLAS Version               : 11201
cuFFT Version                : 10300
cuRAND Version               : 10202
cuSOLVER Version             : (11, 0, 0)
cuSPARSE Version             : 11200
NVRTC Version                : (11, 1)
Thrust Version               : 100910
CUB Build Version            : 100910
cuDNN Build Version          : None
cuDNN Version                : None
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : 10201
Device 0 Name                : Quadro GV100
Device 0 Compute Capability  : 70
Device 1 Name                : Quadro GV100
Device 1 Compute Capability  : 70

Yes, the same error as mine. (pass -s to pytest to see the C++ exception)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

asi1024 picture asi1024  路  3Comments

jakirkham picture jakirkham  路  4Comments

kmaehashi picture kmaehashi  路  3Comments

the-lay picture the-lay  路  4Comments

ax3l picture ax3l  路  3Comments