IF(CUDA_FOUND)
+ IF("${CUDA_NVCC_FLAGS}" MATCHES "-arch")
+
+ # Compute Capability specified explicitly.
+ # Now parse:
+
+ IF("${CUDA_NVCC_FLAGS}" MATCHES "-arch[ ]*sm_([0-9]*)")
+ SET(CUDA_COMPUTE_CAPABILITY "${CMAKE_MATCH_1}")
+ ELSEIF("${CUDA_NVCC_FLAGS}" MATCHES "-arch=sm_([0-9]*)")
+ SET(CUDA_COMPUTE_CAPABILITY "${CMAKE_MATCH_1}")
+ ELSE()
+ MESSAGE( FATAL_ERROR "Missformed Compute Capability specified")
+ ENDIF()
+
+ IF("${CUDA_COMPUTE_CAPABILITY}" LESS "35")
+ MESSAGE( FATAL_ERROR "Too low CUDA Compute Capability specified -- deal.II requires at least 3.5 ")
+ ENDIF()
+ ENDIF()
+
+ IF( NOT DEFINED CUDA_COMPUTE_CAPABILITY)
+ # Set to use compute capability 3.5 by default
+ SET(CUDA_COMPUTE_CAPABILITY "35")
+ SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -arch=sm_35)
+ ENDIF()
+
+ # Export further definitions
+ STRING(SUBSTRING "${CUDA_COMPUTE_CAPABILITY}" 0 1 CUDA_COMPUTE_CAPABILITY_MAJOR)
+ STRING(SUBSTRING "${CUDA_COMPUTE_CAPABILITY}" 1 1 CUDA_COMPUTE_CAPABILITY_MINOR)
+
SET(CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE FALSE)
SET(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -std=c++11)
IF(_feature MATCHES "MPI" AND DEFINED OMPI_VERSION)
_detailed("# OMPI_VERSION = ${OMPI_VERSION}\n")
ENDIF()
+ IF(_feature MATCHES "CUDA" AND DEFINED CUDA_COMPUTE_CAPABILITY)
+ _detailed("# CUDA_COMPUTE_CAPABILITY = ${CUDA_COMPUTE_CAPABILITY_MAJOR}.${CUDA_COMPUTE_CAPABILITY_MINOR}\n")
+ ENDIF()
+
#
# Print out ${_feature}_DIR: