Open gibsonMatt opened 2 years ago
"CUDA 11.8 is installed"
How are you verifying that the CUDA version of torch is installed? What does print(torch.cuda.is_available())
say?
The present version of torch is only built against CUDA 11.6 - I think they just started testing 11.7. Usually, that error is a mismatch in the environment.
best thing is to start with same pytorch and cuda from the README
Ah ok--must be bc I am running 11.8. Will update if downgrading solves it
I ran into a similar issue, but NVIDIA does not supply a CUDA 11.6 runtime for Ubuntu 22. So, I don't see how the author got that combination of versions running...
Ubuntu 22, torch nightly 1.12.1 and CUDA 11.7 works
Is windows available my env is python 3.8 + torch1.12 + CUDA 11.6 gridencoder.cu compile error
G:\MachineLearning\stable-dreamfusion\gridencoder>python setup.py build running build running build_ext building '_gridencoder' extension Emitting ninja build file G:\MachineLearning\stable-dreamfusion\gridencoder\build\temp.win-amd64-3.8\Release\build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc --generate-dependencies-with-compile --dependency-output G:\MachineLearning\stable-dreamfusion\gridencoder\build\temp.win-amd64-3.8\Release\MachineLearning\stable-dreamfusion\gridencoder\src\gridencoder.obj.d --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\TH -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\include -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\include "-ID:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c G:\MachineLearning\stable-dreamfusion\gridencoder\src\gridencoder.cu -o G:\MachineLearning\stable-dreamfusion\gridencoder\build\temp.win-amd64-3.8\Release\MachineLearning\stable-dreamfusion\gridencoder\src\gridencoder.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_gridencoder -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 FAILED: G:/MachineLearning/stable-dreamfusion/gridencoder/build/temp.win-amd64-3.8/Release/MachineLearning/stable-dreamfusion/gridencoder/src/gridencoder.obj C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc --generate-dependencies-with-compile --dependency-output G:\MachineLearning\stable-dreamfusion\gridencoder\build\temp.win-amd64-3.8\Release\MachineLearning\stable-dreamfusion\gridencoder\src\gridencoder.obj.d --use-local-env -Xcompiler /MD -Xcompiler /wd4819 -Xcompiler /wd4251 -Xcompiler /wd4244 -Xcompiler /wd4267 -Xcompiler /wd4275 -Xcompiler /wd4018 -Xcompiler /wd4190 -Xcompiler /EHsc -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\TH -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\include -IC:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\include "-ID:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\ATLMFC\include" "-ID:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" -c G:\MachineLearning\stable-dreamfusion\gridencoder\src\gridencoder.cu -o G:\MachineLearning\stable-dreamfusion\gridencoder\build\temp.win-amd64-3.8\Release\MachineLearning\stable-dreamfusion\gridencoder\src\gridencoder.obj -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_gridencoder -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 cl: 命令行 warning D9025 :正在重写“/D__CUDA_NO_HALF_OPERATORS”(用“/UCUDA_NO_HALF_OPERATORS”) cl: 命令行 warning D9025 :正在重写“/DCUDA_NO_HALF_CONVERSIONS”(用“/UCUDA_NO_HALF_CONVERSIONS”) cl: 命令行 warning D9025 :正在重写“/DCUDA_NO_HALF2_OPERATORS”(用“/UCUDA_NO_HALF2_OPERATORS”) gridencoder.cu C:/Users/aresyfchen/AppData/Local/Programs/Python/Python38/lib/site-packages/torch/include\c10/macros/Macros.h(143): warning C4067: 预处理器指令后有意外标记 - 应输入换行符 C:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\pybind11\detail/common.h(108): warning C4005: “HAVE_SNPRINTF”: 宏重定义 C:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\include\pyerrors.h(315): note: 参见“HAVE_SNPRINTF”的前一个定 义 cl: 命令行 warning D9025 :正在重写“/DCUDA_NO_HALF_OPERATORS”(用“/UCUDA_NO_HALF_OPERATORS”) cl: 命令行 warning D9025 :正在重写“/DCUDA_NO_HALF_CONVERSIONS”(用“/UCUDA_NO_HALF_CONVERSIONS”) cl: 命令行 warning D9025 :正在重写“/DCUDA_NO_HALF2_OPERATORS”(用“/U__CUDA_NO_HALF2_OPERATORS__”) gridencoder.cu C:/Users/aresyfchen/AppData/Local/Programs/Python/Python38/lib/site-packages/torch/include\c10/macros/Macros.h(143): warning C4067: 预处理器指令后有意外标记 - 应输入换行符 C:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\pybind11\detail/common.h(108): warning C4005: “HAVE_SNPRINTF”: 宏重定义 C:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\include\pyerrors.h(315): note: 参见“HAVE_SNPRINTF”的前一个定 义 C:/Users/aresyfchen/AppData/Local/Programs/Python/Python38/lib/site-packages/torch/include\c10/core/SymInt.h(84): warning #68-D: integer conversion resulted in a change of sign
C:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\pybind11\cast.h(1429): error: too few arguments for template template parameter "Tuple" detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]" (1507): here
C:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\include\pybind11\cast.h(1503): error: too few arguments for template template parameter "Tuple" detected during instantiation of class "pybind11::detail::tuple_caster<Tuple, Ts...> [with Tuple=std::pair, Ts=<T1, T2>]" (1507): here
2 errors detected in the compilation of "G:/MachineLearning/stable-dreamfusion/gridencoder/src/gridencoder.cu". gridencoder.cu ninja: build stopped: subcommand failed. Traceback (most recent call last): File "C:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\utils\cpp_extension.py", line 1808, in _run_ninja_build subprocess.run( File "C:\Users\aresyfchen\AppData\Local\Programs\Python\Python38\lib\subprocess.py", line 512, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 33, in
i cannot find the reason GPT says cuda's version error,but cuda11.6 is this proj recommend
Windows environment can be tricky, these errors may indicate that MSVC and CUDA versions are not matched.
Hello- I'm trying to install on a windows machine. CUDA 11.8 is installed, but getting persistent error of
No CUDA runtime is found, using CUDA_HOME='C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8' running install
while installing raymarching. Any ideas on where to begin?