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
Enoki cannot build on VS2019 16.10 #118
Comments
What is the compiler log? |
The output might be too much I will just leave the top, others are saved in the file below |
Interesting, looks like nvcc doesn't like the new standard library headers. It works fine on my machine. What's your nvcc version? Here is mine:
|
I am currently using cuda11.0 and cuda 11.4 |
Have you seen similar issues with the new version of MSVC on other projects online? Maybe this will be fixed in a future version of MSVC then? |
I do see some similar problems before. Haven't seen a solution so far. I think if this can't be fixed then just avoid updating 16.10 for now until some future solution appears. btw if I build enoki using 16.9 and link with my project which build using 16.10, it will also fail. |
Just find this problem appears also in the old visual studio and maybe not a bug? Here are some link that might be useful |
What's the spec of your machine? |
I solved my Windows build problems (also CUDA 11 and VS 16.10) by changing if (NOT CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 9.0)
if(CMAKE_CUDA_SIMULATE_VERSION VERSION_GREATER_EQUAL 19.10.25017)
set(CMAKE_CUDA14_STANDARD_COMPILE_OPTION "-std=c++14")
set(CMAKE_CUDA14_EXTENSION_COMPILE_OPTION "-std=c++14")
else()
set(CMAKE_CUDA14_STANDARD_COMPILE_OPTION "")
set(CMAKE_CUDA14_EXTENSION_COMPILE_OPTION "")
endif()
endif() to if (NOT CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 9.0)
if(CMAKE_CUDA_SIMULATE_VERSION VERSION_GREATER_EQUAL 19.10.25017)
#set(CMAKE_CUDA14_STANDARD_COMPILE_OPTION "-std=c++14")
#set(CMAKE_CUDA14_EXTENSION_COMPILE_OPTION "-std=c++14")
else()
set(CMAKE_CUDA14_STANDARD_COMPILE_OPTION "")
set(CMAKE_CUDA14_EXTENSION_COMPILE_OPTION "")
endif()
endif() in Maybe that's helpful for you |
Thanks! this indeed works! |
That works for me!!! |
16.9 works pretty good. Just to notify here if anyone have any ideas. It seems Visual studio recent update have trouble with cuda related building 0.0
The text was updated successfully, but these errors were encountered: