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

Build on Windows CUDA 11.6.t argets(790,9): error MSB3721 #52

Closed
zxzxde opened this issue Jan 18, 2022 · 3 comments
Closed

Build on Windows CUDA 11.6.t argets(790,9): error MSB3721 #52

zxzxde opened this issue Jan 18, 2022 · 3 comments

Comments

@zxzxde
Copy link

zxzxde commented Jan 18, 2022

Windows10
CUDA 11.6
RTX 3080TI
cmake 3.21.2
VS2019 14.29

\src\testbed.cu(1023): error : too few arguments in function cal
l [C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\build\ngp.vcxproj]

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.6.t
argets(790,9): error MSB3721: “"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin\nvcc.exe" -gencode=arch=
compute_86,code="compute_86,compute_86" -gencode=arch=compute_86,code="sm_86,compute_86" --use-local-env -ccbin "C:
\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30133\bin\HostX64\x64" -x cu -rdc=true
-I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\dependencies" -I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gite
e\instant-ngp\dependencies\eigen" -I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\dependencies\filesystem" -
I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\dependencies\glfw\include" -I"C:\Users\Admin\PyOut\CGAI\insta
nt-ngp\Gitee\instant-ngp\dependencies\imgui\gl3w" -I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\dependenci
es\nanovdb" -I"C:\ProgramData\NVIDIA Corporation\OptiX SDK 7.4.0\include" -I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gite
e\instant-ngp\dependencies\tiny-cuda-nn\include" -I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\dependencie
s\tiny-cuda-nn\dependencies" -I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\dependencies\tinylogger" -I"C:
Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\include" -I"C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ng
p\build" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include" --keep-dir x64\RelWithDebInfo -maxrr
egcount=0 --machine 64 --compile -cudart static --extended-lambda --expt-relaxed-constexpr -std=c++14 -Xcompiler="/EHs
c -Zi -Ob1 -bigobj" -D_WINDOWS -DNDEBUG -DNGP_GUI -DNGP_OPTIX -DTCNN_MIN_GPU_ARCH=86 -DTCNN_SHAMPOO -D"NGP_VERSION="
1.0dev"" -D"CMAKE_INTDIR="RelWithDebInfo"" -D_MBCS -DWIN32 -D_WINDOWS -D_CRT_SECURE_NO_WARNINGS -DNDEBUG -DNGP_GUI -
DNGP_OPTIX -DTCNN_MIN_GPU_ARCH=86 -DTCNN_SHAMPOO -D"NGP_VERSION="1.0dev"" -D"CMAKE_INTDIR="RelWithDebInfo"" -Xcompi
ler "/EHsc /W1 /nologo /O2 /FdC:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\build\RelWithDebInfo\ngp.pdb /FS
/Zi /MD /GR" -o ngp.dir\RelWithDebInfo\testbed.obj "C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\src\testbe
d.cu"” quit reture 1。 [C:\Users\Admin\PyOut\CGAI\instant-ngp\Gitee\instant-ngp\build\ngp.vcxproj]

@Tom94
Copy link
Collaborator

Tom94 commented Jan 18, 2022

Your submodules are likely out of date.

Does

git submodule sync --recursive
git submodule update --recursive

resolve the problem?

@zxzxde zxzxde changed the title Build on Windows identifier "TCNN_MIN_GPU_ARCH" is undefined Build on Windows CUDA 11.6.t argets(790,9): error MSB3721 Jan 18, 2022
@bit704
Copy link

bit704 commented Jan 18, 2022

I had the same error with you on
Windows10
CUDA 11.2
RTX 3060
cmake 3.22.1
vs2019
But this error vanished when I used RTX 3090.

@Tom94 Tom94 closed this as completed Jan 18, 2022
@Tom94
Copy link
Collaborator

Tom94 commented Jan 18, 2022

Please feel free to re-open the issue if updating the submodules as described above does not fix it.

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

3 participants