-
Notifications
You must be signed in to change notification settings - Fork 2k
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
"CMakeCUDACompilerId.cu" failed. #923
Comments
I also met this problem, still wondering what the problem is. |
Adding |
Hi. I'm also trying to fix it as they're dependencies that have to be resolved. I had the same problem as @Pangolin112 but after using command you recommended I got this error. -- The CUDA compiler identification is NVIDIA 10.2.89 -- Targeting GPU architectures: 75 "GNU" version 8.4.0. -- Found Vulkan: /usr/lib/x86_64-linux-gnu/libvulkan.so (found version "1.3.204") missing components: glslc glslangValidator -- Found Python: /usr/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.7") found components: Interpreter Development Development.Module Development.Embed But after deleting the build directory and typing the command once again it seems it has built successfully: michaels@michaels-320S:~/CLionProjects/instant-ngp$ cmake . -D TCNN_CUDA_ARCHITECTURES=86 -D CMAKE_CUDA_COMPILER=$(which nvcc) -B build -- Targeting GPU architectures: 75 -- Found Python: /usr/bin/python3.10 (found suitable version "3.10.6", minimum required is "3.7") found components: Interpreter Development Development.Module Development.Embed |
amazing |
Some confusion in the comments here as to whether this is Windows or Linux the OP is interested in; for those who fell into this hole trying to build under Windows I found setting an environment variable
..fixed it for me - this was with CMake 3.25.3 and CUDA 12.1 - change your setting of the variable according to your version of the CUDA Toolkit. |
@Uniformed9 @MichalSzczekocki Check here! The main issue is IDE. |
This issue can be caused by too long a value in the environment variable |
I get this error when trying to cmake
------ System -----
Intel i9, RTX 3070
Windows 10
nvcc --version = V10.2.89
python --version = Python 3.10.2
Developer Command Prompt for VS 2019
Tried uninstalling everything, installing from scratch etc
------ Error -----
C:\ngp>cd instant-ngp
C:\ngp\instant-ngp>cmake . -B build
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake:739 (message):
Compiling the CUDA compiler identification source file
"CMakeCUDACompilerId.cu" failed.
Compiler:
Build flags:
Id flags: --keep;--keep-dir;tmp -v
The output was:
1
Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 9/2/2022 10:00:34 PM.
Project
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
on node 1 (default targets).
PrepareForBuild:
InitializeBuildStatus:
AddCudaCompileDeps:
Project
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(1) is building
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(1:2) on node 1 (CudaBuildCore target(s)).
CudaBuildCore:
C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA
10.2.targets(764,9): error MSB3721: The command ""C:\Program Files\NVIDIA
GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe"
-gencode=arch=compute_30,code="sm_30,compute_30" --use-local-env -ccbin
"C:\Program Files (x86)\Microsoft Visual
Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu
-I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include"
-I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" -G
--keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static
-v -g -D_MBCS -Xcompiler "/EHsc /W0 /nologo /Od /FdDebug\vc142.pdb /FS /Zi
/RTC1 /MDd " -o Debug\CMakeCUDACompilerId.cu.obj
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CMakeCUDACompilerId.cu""
exited with code 1.
[C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CompilerIdCUDA.vcxproj]
Done Building Project
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(CudaBuildCore target(s)) -- FAILED.
Done Building Project
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(default targets) -- FAILED.
Build FAILED.
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(default target) (1) ->
"C:\ngp\instant-ngp\build\CMakeFiles\3.24.1\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
(CudaBuildCore target) (1:2) ->
(CudaBuildCore target) ->
Time Elapsed 00:00:01.52
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeDetermineCompilerId.cmake:48 (__determine_compiler_id_test)
C:/Program Files/CMake/share/cmake-3.24/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:11 (project)
-- Configuring incomplete, errors occurred!
See also "C:/ngp/instant-ngp/build/CMakeFiles/CMakeOutput.log".
See also "C:/ngp/instant-ngp/build/CMakeFiles/CMakeError.log".
C:\ngp\instant-ngp>
The text was updated successfully, but these errors were encountered: