Skip to content

Error when compiling : tiny-cuda-nn and error MSB3721 #204

Answered by Tom94
gregbeast asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like CMake generated sm_52,compute_52 nvcc arguments despite having detected your GPU architecture correctly (-DTCNN_MIN_GPU_ARCH=86). This is puzzling to me and shouldn't happen -- the correct arch arguments would be sm_86,compute_86.

Unfortunately, everything seems to be working fine my machine on the latest CMake, CUDA, and VS 2019, so I can't easily look for a fix.

Shot in the dark: perhaps hardcoding the appropriate flags

list(APPEND CUDA_NVCC_FLAGS "-gencode=arch=compute_86,code=\"sm_86,compute_86\"")

near the top of instant-ngp/CMakeLists.txt and instant-ngp/dependencies/tiny-cuda-nn/CMakeLists.txt will fix it on your systems.

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Ghanimalg
Comment options

Answer selected by Tom94
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #194 on February 21, 2022 07:32.