File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
# Known NVIDIA GPU achitectures Caffe can be compiled for.
6
6
# This list will be used for CUDA_ARCH_NAME = All option
7
- set (Caffe_known_gpu_archs "20 21(20) 30 35 50" )
7
+ set (Caffe_known_gpu_archs "20 21(20) 30 35 50 60 61 " )
8
8
9
9
################################################################################################
10
10
# A function for automatic detection of GPUs installed (if autodetection is enabled)
@@ -56,7 +56,7 @@ endfunction()
56
56
# caffe_select_nvcc_arch_flags(out_variable)
57
57
function (caffe_select_nvcc_arch_flags out_variable)
58
58
# List of arch names
59
- set (__archs_names "Fermi" "Kepler" "Maxwell" "All" "Manual" )
59
+ set (__archs_names "Fermi" "Kepler" "Maxwell" "Pascal" " All" "Manual" )
60
60
set (__archs_name_default "All" )
61
61
if (NOT CMAKE_CROSSCOMPILING )
62
62
list (APPEND __archs_names "Auto" )
@@ -89,6 +89,8 @@ function(caffe_select_nvcc_arch_flags out_variable)
89
89
set (__cuda_arch_bin "30 35" )
90
90
elseif (${CUDA_ARCH_NAME} STREQUAL "Maxwell" )
91
91
set (__cuda_arch_bin "50" )
92
+ elseif (${CUDA_ARCH_NAME} STREQUAL "Pascal" )
93
+ set (__cuda_arch_bin "60 61" )
92
94
elseif (${CUDA_ARCH_NAME} STREQUAL "All" )
93
95
set (__cuda_arch_bin ${Caffe_known_gpu_archs} )
94
96
elseif (${CUDA_ARCH_NAME} STREQUAL "Auto" )
You can’t perform that action at this time.
0 commit comments