-
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.
- Loading branch information
Showing
11 changed files
with
87 additions
and
10 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FIND_PACKAGE(CUDA) | ||
|
||
INCLUDE(FindPackageHandleStandardArgs) | ||
IF (NOT CUDA_FOUND) | ||
#Important note here: this find Module is named TPLCUSOLVER | ||
#The eventual target is named CUSOLVER. To avoid naming conflicts | ||
#the find module is called TPLCUSOLVER. This call will cause | ||
#the find_package call to fail in a "standard" CMake way | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TPLCUSOLVER REQUIRED_VARS CUDA_FOUND) | ||
ELSE() | ||
#The libraries might be empty - OR they might explicitly be not found | ||
IF("${CUDA_CUSOLVER_LIBRARIES}" MATCHES "NOTFOUND") | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(TPLCUSOLVER REQUIRED_VARS CUDA_CUSOLVER_LIBRARIES) | ||
ELSE() | ||
KOKKOSKERNELS_CREATE_IMPORTED_TPL(CUSOLVER INTERFACE | ||
LINK_LIBRARIES "${CUDA_CUSOLVER_LIBRARIES}") | ||
ENDIF() | ||
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,12 @@ | ||
FIND_PACKAGE(ROCSOLVER) | ||
if(TARGET roc::rocsolver) | ||
## MPL: 12/29/2022: Variable TPL_ROCSOLVER_IMPORTED_NAME follows the requested convention | ||
## of KokkosKernel (method kokkoskernels_import_tpl of kokkoskernels_tpls.cmake) | ||
SET(TPL_ROCSOLVER_IMPORTED_NAME roc::rocsolver) | ||
SET(TPL_IMPORTED_NAME roc::rocsolver) | ||
## MPL: 12/29/2022: A target comming from a TPL must follows the requested convention | ||
## of KokkosKernel (method kokkoskernels_link_tpl of kokkoskernels_tpls.cmake) | ||
ADD_LIBRARY(KokkosKernels::ROCSOLVER ALIAS roc::rocsolver) | ||
ELSE() | ||
MESSAGE(FATAL_ERROR "Package ROCSOLVER requested but not found") | ||
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