NVlabs / instant-ngp

Instant neural graphics primitives: lightning fast NeRF and more
https://nvlabs.github.io/instant-ngp
Other
16k stars 1.93k forks source link

Build FAILED - CMake Error - "CMakeCUDACompilerId.cu" failed. #998

Open paulgnz opened 2 years ago

paulgnz commented 2 years ago

VS 2019 (Develoer Command Prompt) Windows 10 Pro 21H2 CMake 3.24.2

Intel i9 / 3070 Ti

nvcc --version Cuda compilation tools, release 11.8, V11.8.89 Build cuda_11.8.r11.8/compiler.31833905_0

PS C:\Users\Big Red> e:
PS E:\> cd .\instant-ngp\
PS E:\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: $(which

  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 10/6/2022 1:38:06 PM.

  Project
  "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
  on node 1 (default targets).

  PrepareForBuild:

    Creating directory "Debug\".
    Creating directory "Debug\CompilerIdCUDA.tlog\".

  InitializeBuildStatus:

    Creating "Debug\CompilerIdCUDA.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.

  AddCudaCompileDeps:

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64\cl.exe /E /nologo /showIncludes /TP /D__CUDACC__ /D__CUDACC_VER_MAJOR__=11 /D__CUDACC_VER_MINOR__=8 /D_MBCS /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include" /I. /FIcuda_runtime.h /c E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CMakeCUDACompilerId.cu

  Project
  "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
  (1) is building
  "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
  (1:2) on node 1 (CudaBuildCore target(s)).

  CudaBuildCore:

    Compiling CUDA source file CMakeCUDACompilerId.cu...
    Creating directory "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\x64\Debug".
    cmd.exe /C "C:\Users\Big Red\AppData\Local\Temp\tmpf9c7ac71628d4c17b308c57406ee5f38.cmd"
    "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --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\v11.8\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\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 E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\x64\Debug\CMakeCUDACompilerId.cu.obj "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CMakeCUDACompilerId.cu"

    E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --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\v11.8\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\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 E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\x64\Debug\CMakeCUDACompilerId.cu.obj "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CMakeCUDACompilerId.cu"

  C:\Program Files (x86)\Microsoft Visual
  Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA
  11.8.targets(785,9): error MSB3721: The command ""C:\Program Files\NVIDIA
  GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe"
  -gencode=arch=compute_52,code=\"sm_52,compute_52\" --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\v11.8\include"
  -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\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
  E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\x64\Debug\CMakeCUDACompilerId.cu.obj
  "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CMakeCUDACompilerId.cu""
  exited with code 1.
  [E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj]

  Done Building Project
  "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
  (CudaBuildCore target(s)) -- FAILED.

  Done Building Project
  "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
  (default targets) -- FAILED.

  Build FAILED.

  "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
  (default target) (1) ->

  "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj"
  (CudaBuildCore target) (1:2) ->

  (CudaBuildCore target) ->

    C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.8.targets(785,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.exe" -gencode=arch=compute_52,code=\"sm_52,compute_52\" --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\v11.8\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\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 E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\x64\Debug\CMakeCUDACompilerId.cu.obj "E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CMakeCUDACompilerId.cu"" exited with code 1. [E:\instant-ngp\build\CMakeFiles\3.24.2\CompilerIdCUDA\CompilerIdCUDA.vcxproj]

      0 Warning(s)
      1 Error(s)

  Time Elapsed 00:00:02.06

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 "E:/instant-ngp/build/CMakeFiles/CMakeOutput.log".
See also "E:/instant-ngp/build/CMakeFiles/CMakeError.log".
PS E:\instant-ngp>
cozelz commented 2 years ago

Running into the same problem, were you able to make any progress?

DaKaXiong commented 2 years ago

Hi, have you solved this problem? what is the reason? I also had the same problem.

cozelz commented 2 years ago

Unfortunately I have not been able to, I took a break on working on it this week just with other project deadlines. If I find a solution I will be sure to share! or vice versa :)

Best regards, Carson

On Wed, Oct 19, 2022 at 6:35 AM 大咖兄 @.***> wrote:

Hi, have you solved this problem? what is the reason? I also had the same problem.

— Reply to this email directly, view it on GitHub https://github.com/NVlabs/instant-ngp/issues/998#issuecomment-1284028265, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3DB7JY3KWIKLUH3UGOM3G3WD72IVANCNFSM6AAAAAAQ6BT3AE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

xiafengdongzhi commented 1 year ago

Hi, have you solved this problem? I met the same one.

cozelz commented 1 year ago

I couldn't figure out a solution but I switched to nerf studio - GitHub - nerfstudio-project/nerfstudio: A collaboration friendly studio for NeRFs https://github.com/nerfstudio-project/nerfstudio/

On Fri, Apr 14, 2023 at 6:32 PM xiafengdongzhi @.***> wrote:

Hi, have you solved this problem? I met the same one.

— Reply to this email directly, view it on GitHub https://github.com/NVlabs/instant-ngp/issues/998#issuecomment-1509450099, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3DB7J6X2NCRNMRPDYKTRUDXBH3DZANCNFSM6AAAAAAQ6BT3AE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

xiafengdongzhi commented 1 year ago

I couldn't figure out a solution but I switched to nerf studio - GitHub - nerfstudio-project/nerfstudio: A collaboration friendly studio for NeRFs https://github.com/nerfstudio-project/nerfstudio/ On Fri, Apr 14, 2023 at 6:32 PM xiafengdongzhi @.> wrote: Hi, have you solved this problem? I met the same one. — Reply to this email directly, view it on GitHub <#998 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3DB7J6X2NCRNMRPDYKTRUDXBH3DZANCNFSM6AAAAAAQ6BT3AE . You are receiving this because you are subscribed to this thread.Message ID: @.>

Thanks! I have solved this problem. It's fun! Because my users‘ name was Chinese, then I changed it into English. The problem was gone.

ergt10 commented 2 months ago

Hi, have you solved this problem? what is the reason? I also had the same problem.

hi,were you able to make any progress?

cozelz commented 2 months ago

Apologies, I have not solved the issue :(

On Thu, Aug 29, 2024 at 1:49 AM ergt10 @.***> wrote:

Hi, have you solved this problem? what is the reason? I also had the same problem.

hi,were you able to make any progress?

— Reply to this email directly, view it on GitHub https://github.com/NVlabs/instant-ngp/issues/998#issuecomment-2317053688, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3DB7JZWGKO4LSCEJK3GLULZT3OAPAVCNFSM6AAAAAAQ6BT3AGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJXGA2TGNRYHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>