-
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.
initial TPL implementation of CBLAS/LAPACKE
- Loading branch information
jjwilke
committed
Dec 20, 2019
1 parent
3f74cb6
commit a656bff
Showing
4 changed files
with
73 additions
and
24 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,15 @@ | ||
IF (DEFINED 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,15 @@ | ||
IF (DEFINED 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
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