Skip to content

Commit

Permalink
added cholmod and superul tpls
Browse files Browse the repository at this point in the history
  • Loading branch information
jjwilke committed Mar 3, 2020
1 parent d817b62 commit c4cb5be
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cmake/Modules/FindTPLCHOLMOD.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
IF (DEFINED CHOLMOD_LIBRARIES)
#we were given the exact list of libraries to find
KOKKOSKERNELS_FIND_IMPORTED(CHOLMOD INTERFACE
LIBRARIES ${CHOLMOD_LIBRARIES}
LIBRARY_PATHS ${CHOLMOD_LIBRARY_DIRS}
HEADERS cholmod.h
HEADER_PATHS ${CHOLMOD_INCLUDE_DIRS})
ELSE()
#we need to find one of the valid versions from the list below
KOKKOSKERNELS_FIND_IMPORTED(CHOLMOD
LIBRARY cholmod
LIBRARY_PATHS ${CHOLMOD_LIBRARY_DIRS}
HEADERS cholmod.h
HEADER_PATHS ${CHOLMOD_INCLUDE_DIRS})
ENDIF()
15 changes: 15 additions & 0 deletions cmake/Modules/FindTPLSUPERLU.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
IF (DEFINED SUPERLU_LIBRARIES)
#we were given the exact list of libraries to find
KOKKOSKERNELS_FIND_IMPORTED(SUPERLU INTERFACE
LIBRARIES ${SUPERLU_LIBRARIES}
LIBRARY_PATHS ${SUPERLU_LIBRARY_DIRS}
HEADERS slu_ddefs.h
HEADER_PATHS ${SUPERLU_INCLUDE_DIRS})
ELSE()
#we need to find one of the valid versions from the list below
KOKKOSKERNELS_FIND_IMPORTED(SUPERLU
LIBRARY superlu
LIBRARY_PATHS ${SUPERLU_LIBRARY_DIRS}
HEADERS slu_ddefs.h
HEADER_PATHS ${SUPERLU_INCLUDE_DIRS})
ENDIF()
2 changes: 2 additions & 0 deletions cmake/kokkoskernels_tpls.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,8 @@ IF (NOT KOKKOSKERNELS_HAS_TRILINOS)
KOKKOSKERNELS_IMPORT_TPL(CUSPARSE)
KOKKOSKERNELS_IMPORT_TPL(CBLAS)
KOKKOSKERNELS_IMPORT_TPL(LAPACKE)
KOKKOSKERNELS_IMPORT_TPL(CHOLMOD)
KOKKOSKERNELS_IMPORT_TPL(SUPERLU)
ENDIF()

#Convert list to newlines (which CMake doesn't always like in cache variables)
Expand Down
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ ENDIF()

KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC BLAS)
KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC LAPACK)
KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC CBLAS)
KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC LAPACKE)
KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC SUPERLU)
KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC CHOLMOD)
KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC MKL)
KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC CUBLAS)
KOKKOSKERNELS_LINK_TPL(kokkoskernels PUBLIC CUSPARSE)
Expand Down

0 comments on commit c4cb5be

Please sign in to comment.