spconv
spconv copied to clipboard
ImportError: cannot import name 'NVRTCMode'
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
i meet the same problem. cy
version problem.
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.
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.