]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add support for cuSOLVER in build system
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 23 Apr 2018 22:25:50 +0000 (18:25 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Thu, 26 Apr 2018 21:23:40 +0000 (17:23 -0400)
cmake/modules/FindCUDA.cmake

index af0ec8dd1f9eb7eae98fe697e35bec7b3a2b8cef..b639216e22c5d945858031c157cffd2b0bae6bd1 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.