Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building extension '_raymarching' #51

Closed
francescofugazzi opened this issue Apr 14, 2022 · 14 comments
Closed

Error building extension '_raymarching' #51

francescofugazzi opened this issue Apr 14, 2022 · 14 comments

Comments

@francescofugazzi
Copy link

I get this when tryin to launch the example for the first time

Traceback (most recent call last):
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1740, in _run_ninja_build
subprocess.run(
File "C:\Users\franz\anaconda3\envs\torchngp\lib\subprocess.py", line 528, 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 "E:\nvidia\torch-ngp\main_nerf.py", line 63, in
from nerf.network import NeRFNetwork
File "E:\nvidia\torch-ngp\nerf\network.py", line 7, in
from .renderer import NeRFRenderer
File "E:\nvidia\torch-ngp\nerf\renderer.py", line 9, in
import raymarching
File "E:\nvidia\torch-ngp\raymarching_init_.py", line 1, in
from .raymarching import *
File "E:\nvidia\torch-ngp\raymarching\raymarching.py", line 9, in
from .backend import backend
File "E:\nvidia\torch-ngp\raymarching\backend.py", line 31, in
backend = load(name='raymarching',
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1144, in load
return jit_compile(
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1357, in jit_compile
write_ninja_file_and_build_library(
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1469, in write_ninja_file_and_build_library
run_ninja_build(
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1756, in run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'raymarching': [1/2] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc --generate-dependencies-with-compile --dependency-output raymarching.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=raymarching -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\TH -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IC:\Users\franz\anaconda3\envs\torchngp\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS
-U__CUDA_NO_HALF_CONVERSIONS_ -U__CUDA_NO_HALF2_OPERATORS__ -c E:\nvidia\torch-ngp\raymarching\src\raymarching.cu -o raymarching.cuda.o
FAILED: raymarching.cuda.o
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc --generate-dependencies-with-compile --dependency-output raymarching.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=raymarching -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\TH -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IC:\Users\franz\anaconda3\envs\torchngp\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS_ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -c E:\nvidia\torch-ngp\raymarching\src\raymarching.cu -o raymarching.cuda.o
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF_OPERATORS__' con '/U__CUDA_NO_HALF_OPERATORS__'
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF_CONVERSIONS__' con '/U__CUDA_NO_HALF_CONVERSIONS__'
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF2_OPERATORS__' con '/U__CUDA_NO_HALF2_OPERATORS__'
raymarching.cu
C:/Users/franz/anaconda3/envs/torchngp/lib/site-packages/torch/include\c10/macros/Macros.h(142): warning C4067: token imprevisti dopo una direttiva per il preprocessore. Previsto un carattere di nuova riga
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF_OPERATORS__' con '/U__CUDA_NO_HALF_OPERATORS__'
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF_CONVERSIONS__' con '/U__CUDA_NO_HALF_CONVERSIONS__'
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF2_OPERATORS__' con '/U__CUDA_NO_HALF2_OPERATORS__'
raymarching.cu
C:/Users/franz/anaconda3/envs/torchngp/lib/site-packages/torch/include\c10/macros/Macros.h(142): warning C4067: token imprevisti dopo una direttiva per il preprocessore. Previsto un carattere di nuova riga
C:\Users\franz\anaconda3\envs\torchngp\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\franz\anaconda3\envs\torchngp\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

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(332): warning #177-D: variable "index" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_forward(const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, scalar_t *) [with scalar_t=double]"
(626): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(332): warning #177-D: variable "index" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_forward(const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, scalar_t *) [with scalar_t=float]"
(626): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(332): warning #177-D: variable "index" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_forward(const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, scalar_t *) [with scalar_t=c10::Half]"
(626): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(407): warning #177-D: variable "weight" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_backward(const scalar_t *, const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, const scalar_t *, scalar_t *) [with scalar_t=double]"
(659): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(389): warning #177-D: variable "index" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_backward(const scalar_t *, const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, const scalar_t *, scalar_t *) [with scalar_t=double]"
(659): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(407): warning #177-D: variable "weight" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_backward(const scalar_t *, const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, const scalar_t *, scalar_t *) [with scalar_t=float]"
(659): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(389): warning #177-D: variable "index" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_backward(const scalar_t *, const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, const scalar_t *, scalar_t *) [with scalar_t=float]"
(659): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(407): warning #177-D: variable "weight" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_backward(const scalar_t *, const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, const scalar_t *, scalar_t *) [with scalar_t=c10::Half]"
(659): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(389): warning #177-D: variable "index" was declared but never referenced
detected during instantiation of "void kernel_composite_weights_backward(const scalar_t *, const scalar_t *, const scalar_t *, const int *, uint32_t, uint32_t, const scalar_t *, scalar_t *) [with scalar_t=c10::Half]"
(659): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(777): warning #177-D: variable "near" was declared but never referenced
detected during instantiation of "void kernel_march_rays(uint32_t, uint32_t, const int *, const scalar_t *, const scalar_t *, const scalar_t *, float, float, uint32_t, uint32_t, const scalar_t *, float, const scalar_t *, const scalar_t *, scalar_t *, scalar_t *, scalar_t *, uint32_t) [with scalar_t=double]"
(853): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(777): warning #177-D: variable "near" was declared but never referenced
detected during instantiation of "void kernel_march_rays(uint32_t, uint32_t, const int *, const scalar_t *, const scalar_t *, const scalar_t *, float, float, uint32_t, uint32_t, const scalar_t *, float, const scalar_t *, const scalar_t *, scalar_t *, scalar_t *, scalar_t *, uint32_t) [with scalar_t=float]"
(853): here

2 errors detected in the compilation of "E:/nvidia/torch-ngp/raymarching/src/raymarching.cu".
raymarching.cu
ninja: build stopped: subcommand failed.

@ashawkey
Copy link
Owner

@francescofugazzi Please check #47 (comment), and give more details about your environment.

@francescofugazzi
Copy link
Author

thanks for your reply
I changed the c++ to 17 in ll backend.py files but it's unclear to me how to set the vstool downgrade suggestion.
About my enviroment:
Windows 11
VS Studio 2022 Community updated to latest version
Cuda 11.6
Anaconda prompt

Previously I managed to install instant-ngp and nvdifferc without any particular problem... well about the latter it couldn't find Visual Studio path and I olved it by changing it removing (x86) in the paths and the same I did here with all backend.py files

@ashawkey
Copy link
Owner

So there is still problem after changing to /std=c++17 (which solved the problem in that issue)?
Also, could you install the pytorch bindings of tiny-cuda-nn?

@francescofugazzi
Copy link
Author

i confirm that i had no problems with tiny-cuda-nn, i only had to change the visual studio paths

@ashawkey
Copy link
Owner

@francescofugazzi I found this related issue, could you try to remove all the #include <torch/extension.h> (like this) and build again? If that also fails, I would recommend downgrade CUDA...

@ashawkey
Copy link
Owner

I have pushed the mentioned changes in the latest commit, you can directly use this to try.

@francescofugazzi
Copy link
Author

I tried but still nothing, I think it counts an error more now

File "C:\Users\franz\anaconda3\envs\torchngp\lib\subprocess.py", line 528, 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 "E:\nvidia\torch-ngp\main_nerf.py", line 63, in
from nerf.network import NeRFNetwork
File "E:\nvidia\torch-ngp\nerf\network.py", line 7, in
from .renderer import NeRFRenderer
File "E:\nvidia\torch-ngp\nerf\renderer.py", line 9, in
import raymarching
File "E:\nvidia\torch-ngp\raymarching_init_.py", line 1, in
from .raymarching import *
File "E:\nvidia\torch-ngp\raymarching\raymarching.py", line 9, in
from .backend import backend
File "E:\nvidia\torch-ngp\raymarching\backend.py", line 31, in
backend = load(name='raymarching',
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1144, in load
return jit_compile(
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1357, in jit_compile
write_ninja_file_and_build_library(
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1469, in write_ninja_file_and_build_library
run_ninja_build(
File "C:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\utils\cpp_extension.py", line 1756, in run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'raymarching': [1/3] C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc --generate-dependencies-with-compile --dependency-output raymarching.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=raymarching -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\TH -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IC:\Users\franz\anaconda3\envs\torchngp\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS
-U__CUDA_NO_HALF_CONVERSIONS_ -U__CUDA_NO_HALF2_OPERATORS__ -c E:\nvidia\torch-ngp\raymarching\src\raymarching.cu -o raymarching.cuda.o
FAILED: raymarching.cuda.o
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc --generate-dependencies-with-compile --dependency-output raymarching.cuda.o.d -Xcudafe --diag_suppress=dll_interface_conflict_dllexport_assumed -Xcudafe --diag_suppress=dll_interface_conflict_none_assumed -Xcudafe --diag_suppress=field_without_dll_interface -Xcudafe --diag_suppress=base_class_has_different_dll_interface -Xcompiler /EHsc -Xcompiler /wd4190 -Xcompiler /wd4018 -Xcompiler /wd4275 -Xcompiler /wd4267 -Xcompiler /wd4244 -Xcompiler /wd4251 -Xcompiler /wd4819 -Xcompiler /MD -DTORCH_EXTENSION_NAME=raymarching -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\TH -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IC:\Users\franz\anaconda3\envs\torchngp\Include -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS_ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -O3 -std=c++14 -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -U__CUDA_NO_HALF2_OPERATORS__ -c E:\nvidia\torch-ngp\raymarching\src\raymarching.cu -o raymarching.cuda.o
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF_OPERATORS__' con '/U__CUDA_NO_HALF_OPERATORS__'
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF_CONVERSIONS__' con '/U__CUDA_NO_HALF_CONVERSIONS__'
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF2_OPERATORS__' con '/U__CUDA_NO_HALF2_OPERATORS__'
raymarching.cu
C:/Users/franz/anaconda3/envs/torchngp/lib/site-packages/torch/include\c10/macros/Macros.h(142): warning C4067: token imprevisti dopo una direttiva per il preprocessore. Previsto un carattere di nuova riga
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF_OPERATORS__' con '/U__CUDA_NO_HALF_OPERATORS__'
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF_CONVERSIONS__' con '/U__CUDA_NO_HALF_CONVERSIONS__'
cl : warning della riga di comando D9025 : override di '/D__CUDA_NO_HALF2_OPERATORS__' con '/U__CUDA_NO_HALF2_OPERATORS__'
raymarching.cu
C:/Users/franz/anaconda3/envs/torchngp/lib/site-packages/torch/include\c10/macros/Macros.h(142): warning C4067: token imprevisti dopo una direttiva per il preprocessore. Previsto un carattere di nuova riga
C:\Users\franz\anaconda3\envs\torchngp\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\franz\anaconda3\envs\torchngp\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

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(582): warning #177-D: variable "near" was declared but never referenced
detected during instantiation of "void kernel_march_rays(uint32_t, uint32_t, const int *, const scalar_t *, const scalar_t *, const scalar_t *, float, float, uint32_t, uint32_t, const scalar_t *, float, const scalar_t *, const scalar_t *, scalar_t *, scalar_t *, scalar_t *, uint32_t) [with scalar_t=double]"
(658): here

E:\nvidia\torch-ngp\raymarching\src\raymarching.cu(582): warning #177-D: variable "near" was declared but never referenced
detected during instantiation of "void kernel_march_rays(uint32_t, uint32_t, const int *, const scalar_t *, const scalar_t *, const scalar_t *, float, float, uint32_t, uint32_t, const scalar_t *, float, const scalar_t *, const scalar_t *, scalar_t *, scalar_t *, scalar_t *, uint32_t) [with scalar_t=float]"
(658): here

2 errors detected in the compilation of "E:/nvidia/torch-ngp/raymarching/src/raymarching.cu".
raymarching.cu
[2/3] cl /showIncludes -DTORCH_EXTENSION_NAME=_raymarching -DTORCH_API_INCLUDE_EXTENSION_H -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\torch\csrc\api\include -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\TH -IC:\Users\franz\anaconda3\envs\torchngp\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" -IC:\Users\franz\anaconda3\envs\torchngp\Include -D_GLIBCXX_USE_CXX11_ABI=0 /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /EHsc /O2 /std:c++14 -c E:\nvidia\torch-ngp\raymarching\src\bindings.cpp /Fobindings.o

@neilgogogo
Copy link

neilgogogo commented Apr 16, 2022

hi, I met this and after downgraded cuda to 11.3 and changing std to C++ 17, it works

@ashawkey
Copy link
Owner

@neilgogogo Thanks for the information! I doubt it is caused by pybind's compatibility with CUDA 11.6, and currently the solution is to downgrade CUDA. (also check this).

@francescofugazzi
Copy link
Author

thanks for all the tips :)
I downgraded cuda to 11:3 and deleted the environment and restarted from scratch... now i'm unbale to compile tiny-cuda :(
so i'm stopping even before

@francescofugazzi
Copy link
Author

I managed to compile it :)
In every setup.py i changed the nvcc flag '-std=c++14' to '-std=c++17'
And I also added '-allow-unsupported-compiler'
In this way Cuda 11.3 can be used with Visual Studio 2022. I wans't able at all with Visual Studio 2019 as It kept on giving me problems whatever combination I tried.
I compiled every module separately and installed them as in your guide, because by launching the main script i was still getting problems. Now everything seems to work

@ashawkey
Copy link
Owner

Glad to hear that, thanks for the information!

@pfirmino
Copy link

pfirmino commented Oct 4, 2022

Thanks @francescofugazzi, It compiled beutifully here lol

@letian-zhang
Copy link

@francescofugazzi That is really helpful for me. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants