Unverified Commit 7ffc9520 authored by peterjc123's avatar peterjc123 Committed by GitHub
Browse files

Fix win arg patch for BUILD_SPLIT_CUDA=ON (#3419)

parent 22c548b0
...@@ -44,7 +44,15 @@ if(MSVC) ...@@ -44,7 +44,15 @@ if(MSVC)
string(APPEND CMAKE_CUDA_FLAGS " -Xcudafe --diag_suppress=${diag}") string(APPEND CMAKE_CUDA_FLAGS " -Xcudafe --diag_suppress=${diag}")
endforeach() endforeach()
CUDA_CONVERT_FLAGS(torch_cpu) CUDA_CONVERT_FLAGS(torch_cpu)
CUDA_CONVERT_FLAGS(torch_cuda) if(TARGET torch_cuda)
CUDA_CONVERT_FLAGS(torch_cuda)
endif()
if(TARGET torch_cuda_cu)
CUDA_CONVERT_FLAGS(torch_cuda_cu)
endif()
if(TARGET torch_cuda_cpp)
CUDA_CONVERT_FLAGS(torch_cuda_cpp)
endif()
endif() endif()
endif() endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment