We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5284b46 commit 91cde36Copy full SHA for 91cde36
CMakeLists.txt
@@ -199,6 +199,12 @@ if(CCTAG_WITH_CUDA)
199
endif()
200
201
202
+ # This is needed on windows for the multi-threaded compilation, typically ninja and vcpkg
203
+ # it avoids the error C1041: cannot open program database, write to the same .PDB file because of concurrent access
204
+ if(MSVC)
205
+ list(APPEND CUDA_NVCC_FLAGS "-Xcompiler" "-FS")
206
+ endif()
207
+
208
if(CCTAG_NVCC_WARNINGS)
209
list(APPEND CUDA_NVCC_FLAGS -Xptxas --warn-on-local-memory-usage)
210
list(APPEND CUDA_NVCC_FLAGS -Xptxas --warn-on-spills)
0 commit comments