From: Bruno Turcksin Date: Mon, 23 Apr 2018 22:25:50 +0000 (-0400) Subject: Add support for cuSOLVER in build system X-Git-Tag: v9.0.0-rc1~100^2~6 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c695c8ef0cb74e2cc5ad44b7f3408e0f662f91cb;p=dealii.git Add support for cuSOLVER in build system --- diff --git a/cmake/modules/FindCUDA.cmake b/cmake/modules/FindCUDA.cmake index af0ec8dd1f..b639216e22 100644 --- a/cmake/modules/FindCUDA.cmake +++ b/cmake/modules/FindCUDA.cmake @@ -43,7 +43,10 @@ IF(CUDA_FOUND) MESSAGE(STATUS "Configured to use CUDA installation at ${CUDA_TOOLKIT_ROOT_DIR}") ENDIF() -SET(_cuda_libraries ${CUDA_LIBRARIES} ${CUDA_cusparse_LIBRARY}) +# cuSOLVER requires OpenMP +FIND_PACKAGE(OpenMP) +SET(_cuda_libraries ${CUDA_LIBRARIES} ${CUDA_cusparse_LIBRARY} + ${CUDA_cusolver_LIBRARY} ${OpenMP_CXX_FLAGS}) SET(_cuda_include_dirs ${CUDA_INCLUDE_DIRS}) DEAL_II_PACKAGE_HANDLE(CUDA LIBRARIES REQUIRED _cuda_libraries @@ -57,7 +60,6 @@ DEAL_II_PACKAGE_HANDLE(CUDA CUDA_cufft_LIBRARY CUDA_cupti_LIBRARY CUDA_curand_LIBRARY - CUDA_cusolver_LIBRARY CUDA_HOST_COMPILER CUDA_nppc_LIBRARY CUDA_nppi_LIBRARY