mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 00:13:14 +08:00
62 lines
3.1 KiB
Diff
62 lines
3.1 KiB
Diff
|
diff --git a/cmake/Modules_CUDA_fix/upstream/FindCUDA/run_nvcc.cmake b/cmake/Modules_CUDA_fix/upstream/FindCUDA/run_nvcc.cmake
|
||
|
index 9293df3..11bc4bf 100644
|
||
|
--- a/cmake/Modules_CUDA_fix/upstream/FindCUDA/run_nvcc.cmake
|
||
|
+++ b/cmake/Modules_CUDA_fix/upstream/FindCUDA/run_nvcc.cmake
|
||
|
@@ -126,11 +126,11 @@ list(APPEND CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS_${build_configuration}})
|
||
|
# Any -ccbin existing in CUDA_NVCC_FLAGS gets highest priority
|
||
|
list( FIND CUDA_NVCC_FLAGS "-ccbin" ccbin_found0 )
|
||
|
list( FIND CUDA_NVCC_FLAGS "--compiler-bindir" ccbin_found1 )
|
||
|
-if( ccbin_found0 LESS 0 AND ccbin_found1 LESS 0 AND CUDA_HOST_COMPILER )
|
||
|
+if( ccbin_found0 LESS 0 AND ccbin_found1 LESS 0 AND CUDA_HOST_COMPILER AND 0)
|
||
|
if (CUDA_HOST_COMPILER STREQUAL "@_CUDA_MSVC_HOST_COMPILER@" AND DEFINED CCBIN)
|
||
|
- set(CCBIN -ccbin "${CCBIN}")
|
||
|
+ #set(CCBIN -ccbin "${CCBIN}")
|
||
|
else()
|
||
|
- set(CCBIN -ccbin "${CUDA_HOST_COMPILER}")
|
||
|
+ #set(CCBIN -ccbin "${CUDA_HOST_COMPILER}")
|
||
|
endif()
|
||
|
endif()
|
||
|
|
||
|
diff --git a/cmake/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake b/cmake/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake
|
||
|
index d917738..8f832fe 100644
|
||
|
--- a/cmake/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake
|
||
|
+++ b/cmake/Modules_CUDA_fix/upstream/FindCUDA/select_compute_arch.cmake
|
||
|
@@ -30,7 +30,7 @@ endif()
|
||
|
set(CUDA_KNOWN_GPU_ARCHITECTURES "Kepler" "Maxwell")
|
||
|
|
||
|
# This list will be used for CUDA_ARCH_NAME = Common option (enabled by default)
|
||
|
-set(CUDA_COMMON_GPU_ARCHITECTURES "3.5" "5.0")
|
||
|
+# set(CUDA_COMMON_GPU_ARCHITECTURES "3.5" "5.0")
|
||
|
|
||
|
# This list is used to filter CUDA archs when autodetecting
|
||
|
set(CUDA_ALL_GPU_ARCHITECTURES "3.5" "5.0")
|
||
|
diff --git a/cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake b/cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake
|
||
|
index 420ee63..f029b66 100644
|
||
|
--- a/cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake
|
||
|
+++ b/cmake/Modules_CUDA_fix/upstream/FindCUDA.cmake
|
||
|
@@ -1694,9 +1694,9 @@ function(CUDA_LINK_SEPARABLE_COMPILATION_OBJECTS output_file cuda_target options
|
||
|
if( ccbin_found0 LESS 0 AND ccbin_found1 LESS 0 AND CUDA_HOST_COMPILER )
|
||
|
# Match VERBATIM check below.
|
||
|
if(CUDA_HOST_COMPILER MATCHES "\\$\\(VCInstallDir\\)")
|
||
|
- list(APPEND nvcc_flags -ccbin "\"${CUDA_HOST_COMPILER}\"")
|
||
|
+ #list(APPEND nvcc_flags -ccbin "\"${CUDA_HOST_COMPILER}\"")
|
||
|
else()
|
||
|
- list(APPEND nvcc_flags -ccbin "${CUDA_HOST_COMPILER}")
|
||
|
+ #list(APPEND nvcc_flags -ccbin "${CUDA_HOST_COMPILER}")
|
||
|
endif()
|
||
|
endif()
|
||
|
|
||
|
diff --git a/cmake/public/cuda.cmake b/cmake/public/cuda.cmake
|
||
|
index 4112937..3e1af83 100644
|
||
|
--- a/cmake/public/cuda.cmake
|
||
|
+++ b/cmake/public/cuda.cmake
|
||
|
@@ -42,7 +42,7 @@ set(CUDAToolkit_ROOT "${CUDA_TOOLKIT_ROOT_DIR}")
|
||
|
# Must be done before CUDA language is enabled, see
|
||
|
# https://cmake.org/cmake/help/v3.15/variable/CMAKE_CUDA_HOST_COMPILER.html
|
||
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
||
|
- set(CMAKE_CUDA_HOST_COMPILER "${CMAKE_C_COMPILER}")
|
||
|
+ #set(CMAKE_CUDA_HOST_COMPILER "${CMAKE_C_COMPILER}")
|
||
|
endif()
|
||
|
enable_language(CUDA)
|
||
|
if("X${CMAKE_CUDA_STANDARD}" STREQUAL "X" )
|