Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/distro.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnirudh Subramanian <anirudh2290@ufl.edu>2017-06-08 00:30:00 +0300
committerAnirudh Subramanian <anirudh2290@ufl.edu>2017-06-08 00:30:00 +0300
commit296022dac400bf7b80698f409e822b4c824a1817 (patch)
tree252617dbd8d50032de635eb825a843c399702146
parent54a378af2b2eef0a2e1e1a0396b26f5973d7c36f (diff)
Dont set CUDA_ARCH_LIST to ARGN if it is empty
-rw-r--r--cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake b/cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake
index 5376e5b..0c02a8a 100644
--- a/cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake
+++ b/cmake/3.6/Modules/FindCUDA/select_compute_arch.cmake
@@ -88,7 +88,9 @@ endfunction()
# Usage:
# SELECT_NVCC_ARCH_FLAGS(out_variable [list of CUDA compute archs])
function(CUDA_SELECT_NVCC_ARCH_FLAGS out_variable)
- set(CUDA_ARCH_LIST "${ARGN}")
+ if(ARGN)
+ set(CUDA_ARCH_LIST "${ARGN}")
+ endif()
if("X${CUDA_ARCH_LIST}" STREQUAL "X" )
set(CUDA_ARCH_LIST "Auto")