Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rocBLAS to the project #25

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build_tools/fetch_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ def main(argv):
# Math Libraries
"hipBLAS-common",
"hipBLASLt",
"rocBLAS",
],
)
args = parser.parse_args(argv)
Expand Down
37 changes: 37 additions & 0 deletions math-libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,41 @@ therock_cmake_subproject_glob_c_sources(hipBLASLt
SUBDIRS
.
)
therock_cmake_subproject_provide_package(hipBLASLt hipblaslt lib/cmake/hipblaslt)
therock_cmake_subproject_activate(hipBLASLt)

#################################################################################
# rocBLAS
#################################################################################

therock_cmake_subproject_declare(rocBLAS
EXTERNAL_SOURCE_DIR "rocBLAS"
CMAKE_ARGS
-DHIP_PLATFORM=amd
-DROCM_PATH=
-DROCM_DIR=
# TODO: Fix passing TENSILE_ROCM_ASSEMBLER_PATH.
# Enable building with hipBLASLt afterwards.
-DBUILD_WITH_TENSILE=OFF
-DBUILD_WITH_HIPBLASLT=OFF
# -DTensile_LOGIC=
# -DTensile_CODE_OBJECT_VERSION=default
# -DTensile_CPU_THREADS=
# -DTensile_LIBRARY_FORMAT=msgpack
# "-DTensile_ROCM_ASSEMBLER_PATH=${_toolchain_dir}/bin/clang++"
# "-DTensile_ROCM_OFFLOAD_BUNDLER_PATH=${_toolchain_dir}/bin/clang-offload-bundler"
# TODO: Enable clients.
IGNORE_PACKAGES
ROCM
COMPILER_TOOLCHAIN
amd-hip
RUNTIME_DEPS
#hipBLAS-common
#hipBLASLt
hip-clr
)
therock_cmake_subproject_glob_c_sources(rocBLAS
SUBDIRS
.
)
therock_cmake_subproject_activate(rocBLAS)
9 changes: 9 additions & 0 deletions math-libs/post_hook_rocBLAS.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
list(APPEND CMAKE_MODULE_PATH "${THEROCK_SOURCE_DIR}/cmake")
include(therock_rpath)

therock_set_install_rpath(
TARGETS
rocblas
PATHS
.
)
1 change: 1 addition & 0 deletions math-libs/rocBLAS