spconv icon indicating copy to clipboard operation
spconv copied to clipboard

ImportError: cannot import name 'NVRTCMode'

Open 954608128 opened this issue 2 years ago • 5 comments

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/conda/lib/python3.6/site-packages/spconv/__init__.py", line 15, in <module>
    from . import build as _build
  File "/opt/conda/lib/python3.6/site-packages/spconv/build.py", line 21, in <module>
    from .constants import PACKAGE_NAME, PACKAGE_ROOT, DISABLE_JIT
  File "/opt/conda/lib/python3.6/site-packages/spconv/constants.py", line 19, in <module>
    from cumm.gemm.constants import NVRTCMode

954608128 avatar Aug 31 '22 07:08 954608128

i meet the same problem. cy

wyw-dlut avatar Sep 02 '22 14:09 wyw-dlut

version problem.

954608128 avatar Sep 08 '22 06:09 954608128

Please refer to https://github.com/traveller59/spconv.

I solved this problem by referring to the following suggestions.

WARNING
Use spconv >= cu114 if possible. cuda 11.4 can compile greatly faster kernel in some situation.

Update Spconv: you MUST UNINSTALL all spconv/cumm/spconv-cuxxx/cumm-cuxxx first, 

use pip list | grep spconv and pip list | grep cumm to check all installed package. 

then use pip to install new spconv.

gbliao avatar May 17 '23 02:05 gbliao

Please refer to https://github.com/traveller59/spconv.

I solved this problem by referring to the following suggestions.

WARNING
Use spconv >= cu114 if possible. cuda 11.4 can compile greatly faster kernel in some situation.

Update Spconv: you MUST UNINSTALL all spconv/cumm/spconv-cuxxx/cumm-cuxxx first, 

use pip list | grep spconv and pip list | grep cumm to check all installed package. 

then use pip to install new spconv.

I use pip list | grep cumm and find two version cumm installed in the virtual environment. I uninstall the dismatched version and the error disappears.

zhangtingyu11 avatar May 22 '23 06:05 zhangtingyu11