提交 5e03305d 编写于 作者: C cudawarped

build: only disable win32 cuda warnings on CUDA SDK >= 11.2

上级 bc8d4946
......@@ -427,7 +427,7 @@ if(CUDA_FOUND)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcompiler -fno-finite-math-only)
endif()
if(WIN32)
if(CUDA_VERSION VERSION_GREATER_EQUAL 11.2 AND WIN32)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -Xcudafe --display_error_number --diag-suppress 1394,1388)
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册