windows11系统,python代码,cuda为11.8,对应的cudnn为11.X,显卡最高支持12.0的cuda,环境变量和cudnn的安装测试都通过了,print(torch.cuda.is_available())结果为TURE,但依然一直报这个错.有没有同志给解决一下,或者提个思路
No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8'
Traceback (most recent call last):
File "E:\GitProject\SAX-NeRF\test.py", line 29, in <module>
from src.encoder import get_encoder
File "E:\GitProject\SAX-NeRF\src\encoder\__init__.py", line 1, in <module>
from .hashencoder import HashEncoder
File "E:\GitProject\SAX-NeRF\src\encoder\hashencoder\__init__.py", line 1, in <module>
from .hashgrid import HashEncoder
File "E:\GitProject\SAX-NeRF\src\encoder\hashencoder\hashgrid.py", line 8, in <module>
from .backend import _backend
File "E:\GitProject\SAX-NeRF\src\encoder\hashencoder\backend.py", line 6, in <module>
_backend = load(name='_hash_encoder',
File "D:\Anaconda\envs\SAX\lib\site-packages\torch\utils\cpp_extension.py", line 1144, in load
return _jit_compile(
File "D:\Anaconda\envs\SAX\lib\site-packages\torch\utils\cpp_extension.py", line 1357, in _jit_compile
_write_ninja_file_and_build_library(
File "D:\Anaconda\envs\SAX\lib\site-packages\torch\utils\cpp_extension.py", line 1456, in _write_ninja_file_and_build_library
_write_ninja_file_to_build_library(
File "D:\Anaconda\envs\SAX\lib\site-packages\torch\utils\cpp_extension.py", line 1857, in _write_ninja_file_to_build_library
cuda_flags = common_cflags + COMMON_NVCC_FLAGS + _get_cuda_arch_flags()
File "D:\Anaconda\envs\SAX\lib\site-packages\torch\utils\cpp_extension.py", line 1626, in _get_cuda_arch_flags
arch_list[-1] += '+PTX'
IndexError: list index out of range