-
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.
Merge pull request #1808 from ndellingwood/master
Release 4.0.01
- Loading branch information
Showing
40 changed files
with
930 additions
and
382 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 |
---|---|---|
|
@@ -8,3 +8,8 @@ | |
.project | ||
*.o | ||
TAGS | ||
|
||
#Clangd indexing | ||
compile_commands.json | ||
.cache/ | ||
.vscode/ |
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
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 |
---|---|---|
@@ -1,37 +1,13 @@ | ||
IF (ROCBLAS_LIBRARY_DIRS AND ROCBLAS_LIBRARIES) | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCBLAS INTERFACE LIBRARIES ${ROCBLAS_LIBRARIES} LIBRARY_PATHS ${ROCBLAS_LIBRARY_DIRS}) | ||
ELSEIF (ROCBLAS_LIBRARIES) | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCBLAS INTERFACE LIBRARIES ${ROCBLAS_LIBRARIES}) | ||
ELSEIF (ROCBLAS_LIBRARY_DIRS) | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCBLAS INTERFACE LIBRARIES rocblas LIBRARY_PATHS ${ROCBLAS_LIBRARY_DIRS}) | ||
ELSEIF (KokkosKernels_ROCBLAS_ROOT) | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCBLAS INTERFACE | ||
LIBRARIES | ||
rocblas | ||
LIBRARY_PATHS | ||
${KokkosKernels_ROCBLAS_ROOT}/lib | ||
HEADERS | ||
rocblas.h | ||
HEADER_PATHS | ||
${KokkosKernels_ROCBLAS_ROOT}/include | ||
) | ||
ELSEIF (DEFINED ENV{ROCM_PATH}) | ||
MESSAGE(STATUS "Detected ROCM_PATH: ENV{ROCM_PATH}") | ||
SET(ROCBLAS_ROOT "$ENV{ROCM_PATH}/rocblas") | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCBLAS INTERFACE | ||
LIBRARIES | ||
rocblas | ||
LIBRARY_PATHS | ||
${ROCBLAS_ROOT}/lib | ||
HEADERS | ||
rocblas.h | ||
HEADER_PATHS | ||
${ROCBLAS_ROOT}/include | ||
) | ||
# MPL: 12/29/2022: CMake regular way to find a package | ||
FIND_PACKAGE(ROCBLAS) | ||
if(TARGET roc::rocblas) | ||
## MPL: 12/29/2022: Variable TPL_ROCBLAS_IMPORTED_NAME follows the requested convention | ||
## of KokkosKernel (method kokkoskernels_import_tpl of kokkoskernels_tpls.cmake) | ||
SET(TPL_ROCBLAS_IMPORTED_NAME roc::rocblas) | ||
SET(TPL_IMPORTED_NAME roc::rocblas) | ||
## 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::ROCBLAS ALIAS roc::rocblas) | ||
ELSE() | ||
MESSAGE(ERROR "rocBLAS was not detected properly, please disable it or provide sufficient information at configure time.") | ||
# Todo: figure out how to use the target defined during rocblas installation | ||
# FIND_PACKAGE(ROCBLAS REQUIRED) | ||
# KOKKOSKERNELS_CREATE_IMPORTED_TPL(ROCBLAS INTERFACE LINK_LIBRARIES ${ROCBLAS_LIBRARIES}) | ||
# GET_TARGET_PROPERTY(ROCBLAS_LINK_LIBRARIES ${ROCBLAS_LIBRARIES} IMPORTED_LINK_INTERFACE_LIBRARIES) | ||
ENDIF() | ||
MESSAGE(FATAL_ERROR "Package ROCBLAS 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,9 @@ | ||
IF (ROCSPARSE_LIBRARY_DIRS AND ROCSPARSE_LIBRARIES) | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCSPARSE INTERFACE LIBRARIES ${ROCSPARSE_LIBRARIES} LIBRARY_PATHS ${ROCSPARSE_LIBRARY_DIRS}) | ||
ELSEIF (ROCSPARSE_LIBRARIES) | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCSPARSE INTERFACE LIBRARIES ${ROCSPARSE_LIBRARIES}) | ||
ELSEIF (ROCSPARSE_LIBRARY_DIRS) | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCSPARSE INTERFACE LIBRARIES rocsparse LIBRARY_PATHS ${ROCSPARSE_LIBRARY_DIRS}) | ||
ELSEIF (KokkosKernels_ROCSPARSE_ROOT) | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCSPARSE INTERFACE | ||
LIBRARIES | ||
rocsparse | ||
LIBRARY_PATHS | ||
${KokkosKernels_ROCSPARSE_ROOT}/lib | ||
HEADERS | ||
rocsparse.h | ||
HEADER_PATHS | ||
${KokkosKernels_ROCSPARSE_ROOT}/include | ||
) | ||
ELSEIF (DEFINED ENV{ROCM_PATH}) | ||
MESSAGE(STATUS "Detected ROCM_PATH: ENV{ROCM_PATH}") | ||
SET(ROCSPARSE_ROOT "$ENV{ROCM_PATH}/rocsparse") | ||
KOKKOSKERNELS_FIND_IMPORTED(ROCSPARSE INTERFACE | ||
LIBRARIES | ||
rocsparse | ||
LIBRARY_PATHS | ||
${ROCSPARSE_ROOT}/lib | ||
HEADERS | ||
rocsparse.h | ||
HEADER_PATHS | ||
${ROCSPARSE_ROOT}/include | ||
) | ||
# MPL: 05/01/2023: This file follows the partern of FindTPLROCBLAS.cmake | ||
FIND_PACKAGE(ROCSPARSE) | ||
if(TARGET roc::rocsparse) | ||
SET(TPL_ROCSPARSE_IMPORTED_NAME roc::rocsparse) | ||
SET(TPL_IMPORTED_NAME roc::rocsparse) | ||
ADD_LIBRARY(KokkosKernels::ROCSPARSE ALIAS roc::rocsparse) | ||
ELSE() | ||
MESSAGE(ERROR "rocSPARSE was not detected properly, please disable it or provide sufficient information at configure time.") | ||
# Todo: figure out how to use the target defined during rocsparse installation | ||
# FIND_PACKAGE(ROCSPARSE REQUIRED) | ||
# KOKKOSKERNELS_CREATE_IMPORTED_TPL(ROCSPARSE INTERFACE LINK_LIBRARIES ${ROCSPARSE_LIBRARIES}) | ||
# GET_TARGET_PROPERTY(ROCSPARSE_LINK_LIBRARIES ${ROCSPARSE_LIBRARIES} IMPORTED_LINK_INTERFACE_LIBRARIES) | ||
ENDIF() | ||
MESSAGE(FATAL_ERROR "Package ROCSPARSE requested but not found") | ||
ENDIF() |
Oops, something went wrong.