instant-ngp icon indicating copy to clipboard operation
instant-ngp copied to clipboard

tiny-cuda-nn and error MSB3721

Open mikeFandA opened this issue 2 years ago • 4 comments

Hello all,

I've been suffering an error during the second build stage, I can build the directory successfully but can't seem to complete the second stage of compiling everything.

It seems to be similar to issue #194 but the fix that worked there didn't work for me and the compiler seems to be exiting with code 2 not code 1 as in the other mentioned issue.

Error and environment below.

ERROR: C:\ngp\instant-ngp\dependencies\tiny-cuda-nn\dependencies\json/json.hpp(8178): error : enum "nlohmann::detail::lexer_ba se<BasicJsonType>::token_type [with BasicJsonType=BasicJsonType]" has no member "literal_false" [C:\ngp\instant-ngp\bui ld\dependencies\tiny-cuda-nn\tiny-cuda-nn.vcxproj]

C:\ngp\instant-ngp\dependencies\tiny-cuda-nn\dependencies\json/json.hpp(8183): error : enum "nlohmann::detail::lexer_ba se<BasicJsonType>::token_type [with BasicJsonType=BasicJsonType]" has no member "literal_null" [C:\ngp\instant-ngp\buil d\dependencies\tiny-cuda-nn\tiny-cuda-nn.vcxproj]

C:\ngp\instant-ngp\dependencies\tiny-cuda-nn\dependencies\json/json.hpp(8208): error : enum "nlohmann::detail::lexer_ba se<BasicJsonType>::token_type [with BasicJsonType=BasicJsonType]" has no member "end_of_input" [C:\ngp\instant-ngp\buil d\dependencies\tiny-cuda-nn\tiny-cuda-nn.vcxproj]

C:\ngp\instant-ngp\dependencies\tiny-cuda-nn\dependencies\json/json.hpp(8213): error : enum "nlohmann::detail::lexer_ba se<BasicJsonType>::token_type [with BasicJsonType=BasicJsonType]" has no member "parse_error" [C:\ngp\instant-ngp\build \dependencies\tiny-cuda-nn\tiny-cuda-nn.vcxproj]

CUDACOMPILE : nvcc warning : The -std=c++14 flag is not supported with the configured host compiler. Flag will be ignor ed. [C:\ngp\instant-ngp\build\dependencies\tiny-cuda-nn\tiny-cuda-nn.vcxproj] network.cu C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 10.2.t argets(764,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin\nvcc.exe" -gen code=arch=compute_75,code="compute_75,compute_75" -gencode=arch=compute_75,code="sm_75,compute_75" --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:\ngp\instant-ngp\dependencies\tiny-cuda-nn\include" -I"C:\ngp\instant-ngp\dependencies\tiny-cuda-nn\dependencies" -I"C:\ngp\instant-ngp\dependencies\tiny-cuda-nn\dependencies\cutlass\include" -I"C:\ngp\instant-ngp\dependencies\tiny- cuda-nn\dependencies\cutlass\tools\util\include" -I"C:\ngp\instant-ngp\dependencies\tiny-cuda-nn\dependencies\fmt\inclu de" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\include" --keep-dir x64\RelWithDebInfo -maxrregcoun t=0 --machine 64 --compile -cudart shared --extended-lambda --expt-relaxed-constexpr -std=c++14 -Xcompiler="/EHsc -Zi -Ob1 -bigobj" -D_WINDOWS -DNDEBUG -DTCNN_MIN_GPU_ARCH=75 -D"CMAKE_INTDIR="RelWithDebInfo"" -D_MBCS -DWIN32 -D_WIND OWS -D_CRT_SECURE_NO_WARNINGS -DNDEBUG -DTCNN_MIN_GPU_ARCH=75 -D"CMAKE_INTDIR="RelWithDebInfo"" -Xcompiler "/EHsc /W1 /nologo /O2 /FdC:\ngp\instant-ngp\build\dependencies\tiny-cuda-nn\RelWithDebInfo\tiny-cuda-nn.pdb /FS /Zi /MD /GR" -o tiny-cuda-nn.dir\RelWithDebInfo\network.obj "C:\ngp\instant-ngp\dependencies\tiny-cuda-nn\src\network.cu"" exited with code 2. [C:\ngp\instant-ngp\build\dependencies\tiny-cuda-nn\tiny-cuda-nn.vcxproj]

ENVIRONMENT GeForce RTX2060 Windows 10 Optix 7.5 (Latest release as of this date) Cuda 10.2 (Also tried with 11.7 to no avail) Visual Studio 2019 (Latest release as of this date) CMake 3.22.6

Any help/advice will be much appreciated, thanks in advance.

mikeFandA avatar Sep 23 '22 19:09 mikeFandA

Same error here. I read a lot of forums posts and nothing seemed to work.

Geforce RTX2070 super Windows 11 Optix 7.5 (latest release) Cuda 10.2 Visual Studio 2019 Community Cmake 3.22.2 (tried 3.22.0 rc2, 3.22.4)

jeffclermont avatar Oct 04 '22 15:10 jeffclermont

Same error!

xmljson avatar Oct 25 '22 00:10 xmljson

Same error! Geforce RTX1080Ti Windows 10 Cuda 10.2 Visual Studio 2019 Community Cmake 3.25.0

ClarenceHoo avatar Nov 07 '22 18:11 ClarenceHoo

just try with cuda_11.8.0, this worked.

xmljson avatar Nov 08 '22 01:11 xmljson