-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TPL implementation of CBLAS/LAPACKE/SUPERLU/CHOLMOD
- Loading branch information
jjwilke
authored and
Jeremiah J Wilke
committed
Mar 5, 2020
1 parent
c97616e
commit 0fce0d3
Showing
7 changed files
with
139 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
IF (NOT CBLAS_ROOT) | ||
SET(CBLAS_ROOT $ENV{OPENBLAS_ROOT}) | ||
ENDIF() | ||
|
||
IF (CBLAS_LIBRARIES) | ||
#we were given the exact list of libraries to find | ||
KOKKOSKERNELS_FIND_IMPORTED(CBLAS INTERFACE | ||
LIBRARIES ${CBLAS_LIBRARIES} | ||
LIBRARY_PATHS ${CBLAS_LIBRARY_DIRS} | ||
HEADERS cblas.h | ||
HEADER_PATHS ${CBLAS_INCLUDE_DIRS}) | ||
ELSE() | ||
#we need to find one of the valid versions from the list below | ||
KOKKOSKERNELS_FIND_IMPORTED(CBLAS | ||
LIBRARY cblas blas blis openblas | ||
LIBRARY_PATHS ${CBLAS_LIBRARY_DIRS} | ||
HEADERS cblas.h | ||
HEADER_PATHS ${CBLAS_INCLUDE_DIRS}) | ||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
IF (NOT CHOLMOD_ROOT) | ||
SET(CHOLMOD_ROOT $ENV{SUITESPARSE_ROOT}) | ||
ENDIF() | ||
IF (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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
IF (NOT LAPACKE_ROOT) | ||
SET(LAPACKE_ROOT $ENV{OPENBLAS_ROOT}) | ||
ENDIF() | ||
IF (LAPACKE_LIBRARIES) | ||
#we were given the exact list of libraries to find | ||
KOKKOSKERNELS_FIND_IMPORTED(LAPACKE INTERFACE | ||
LIBRARIES ${LAPACKE_LIBRARIES} | ||
LIBRARY_PATHS ${LAPACKE_LIBRARY_DIRS} | ||
HEADERS lapacke.h | ||
HEADER_PATHS ${LAPACKE_INCLUDE_DIRS}) | ||
ELSE() | ||
#we need to find one of the valid versions from the list below | ||
KOKKOSKERNELS_FIND_IMPORTED(LAPACKE | ||
LIBRARY lapacke openblas | ||
LIBRARY_PATHS ${LAPACKE_LIBRARY_DIRS} | ||
HEADERS lapacke.h | ||
HEADER_PATHS ${LAPACKE_INCLUDE_DIRS}) | ||
ENDIF() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
IF (NOT SUPERLU_ROOT) | ||
SET(SUPERLU_ROOT $ENV{SUPERLU_ROOT}) | ||
ENDIF() | ||
IF (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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters