message(STATUS "No compatible CUDA toolkit found (v4.0+), disabling native GPU acceleration")
set_property(CACHE GMX_GPU PROPERTY VALUE OFF)
set(CUDA_NOTFOUND_AUTO ON)
- else ()
+ else()
# the user requested CUDA, but it wasn't found
message(FATAL_ERROR "${CUDA_NOTFOUND_MESSAGE}")
endif()
string(REGEX REPLACE "[ ]+" ";" _cxx_flags_nospace "${BUILD_CXXFLAGS}")
endif()
SET(${COMPILER_FLAGS} "${CUDA_NVCC_FLAGS}${CUDA_NVCC_FLAGS_${_build_type}}; ${_cxx_flags_nospace}")
- else ()
+ else()
SET(${COMPILER_INFO} "N/A")
SET(${COMPILER_FLAGS} "N/A")
- endif ()
- endif ()
+ endif()
+ endif()
endmacro ()
macro(gmx_gpu_setup)