commit: 02b907d30591a02fe42193ea75df6e72890677e9 Author: Sv. Lockal <lockalsash <AT> gmail <DOT> com> AuthorDate: Thu Jan 30 14:37:49 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Thu Feb 13 08:35:23 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02b907d3
sci-libs/rocBLAS: drop 5.1.3-r4, 5.4.2-r3 Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com> Signed-off-by: Sam James <sam <AT> gentoo.org> sci-libs/rocBLAS/Manifest | 4 - .../rocBLAS-4.3.0-fix-glibc-2.32-and-above.patch | 25 ----- ...-5.0.2-change-default-Tensile-library-dir.patch | 47 --------- .../files/rocBLAS-5.0.2-cpp_lib_filesystem.patch | 50 --------- .../files/rocBLAS-5.0.2-unbundle-Tensile.patch | 25 ----- .../files/rocBLAS-5.4.2-unbundle-Tensile.patch | 26 ----- sci-libs/rocBLAS/rocBLAS-5.1.3-r4.ebuild | 114 --------------------- sci-libs/rocBLAS/rocBLAS-5.4.2-r3.ebuild | 107 ------------------- 8 files changed, 398 deletions(-) diff --git a/sci-libs/rocBLAS/Manifest b/sci-libs/rocBLAS/Manifest index 0dd6206be001..b8e1d58c25a0 100644 --- a/sci-libs/rocBLAS/Manifest +++ b/sci-libs/rocBLAS/Manifest @@ -1,7 +1,3 @@ -DIST rocBLAS-5.0.2-Tensile-asm_full-navi22.tar.gz 1110323 BLAKE2B 80fab97c6f89fccf1f8829ad41baf15ad31bbbb313b48825841834c7ec1b9f8ece794aebdf9fda42b54a38f642beb1bc1e374f2f3b4e43d8ba9dfd1eb6e3ece5 SHA512 8f6946cf9d68afd195640ae7e0da8dc33341c67f28813813b5361a56531fa2af4453d075703ea52c66d93a1936cf74688b86aa2fa62b52a7ed5f03272290c232 -DIST rocBLAS-5.4.2-Tensile-asm_full-navi22.tar.gz 1057686 BLAKE2B aa755595bbcd48775713f1d94c18b9bfa6464cae97653dd5beda9e4ed600802b62c4159e6edef7fbd4c92e629bbda1c284e6c48e096c7eaf22bbaad86bdcdace SHA512 cdc928528e7ce5bcc3ae32ec18e3aee48533f24e77c1e42f6e0398858eefebd52b8812caabe01a0ef7fa552e00118b862e025f1675a9642b009f1e38efbcdd53 -DIST rocm-rocBLAS-5.1.3.tar.gz 13741546 BLAKE2B af10d8cb69bee44ef5aab2dc350e1d9f3b6fddb3a840c17230c4b55b2649a4724c9f2e58c1eafdb3e2716eea016a72a35c3ddb498881b1ce682d780baa8d8b07 SHA512 5ab71838fdd0e9c5848cbf28a19d113353b619a878d8c7d05f64feb32faae2054169c95ed6e9dd6b05a2e807b57229dd2c361c4d289b6e6f17c196558640890f -DIST rocm-rocBLAS-5.4.2.tar.gz 15938434 BLAKE2B 14ebafa944fdac443800bb7f9b16f8ecf0f420b168d3c6534f68ad7d14bf058a4cc1673fce8f4b9be53e4a6c1cf05011e01853cd901bce0b59827d2aca4d029f SHA512 e62bb80457c1e89454885499bdce9d60beecd706806724418983c78c65c2ae303550f9670b5a6e71dae6a61c0e42b223ab01b36b8406430731ebcbff54c4a8f4 DIST rocm-rocBLAS-5.7.1.tar.gz 55389700 BLAKE2B 9e58b1d29c8a04aa58ce17fdd9b0c2504934261851619dc5b696a04e8c6a79e7c44d86a6db7a9c76a434d76593de8c191cba6f163cf398d01cfc001e5fa32b5a SHA512 cfc73f6c490595a3c153c2ac2a3cb5926c48c2c19baa07ff3dcdf3a7ccaed82cfdff64ed5a3be64c349cb43d654d4b104d9090e2ec9f2061049d6a4921c07722 DIST rocm-rocBLAS-6.1.1.tar.gz 100103895 BLAKE2B df89a21e47730714b80c62717a86d65ac0d819c2d33b2a3c6252b60b8d7cc9eb5f8f1db27159b0a8dfc87aba7ccad97e2f832bc0044e92d0b69c526d382c745a SHA512 74e847c4ddee16cae7f41e268a815ea03875519c365abe7dfce313a9545df245baa73301b432f64a36cc988281fec7530629a0d72583e9ea287c98ec8a0b3907 DIST rocm-rocBLAS-6.3.0.tar.gz 57907324 BLAKE2B a3cce68e0cc06e8df56e1622889254c75744b0f85c9fe66cb94bbc158f7ce45e40a5798d30e6a10430092490c1e347f19f38b36db767ccb784c5757581b0bccb SHA512 45a524d680f1f0760fd37d49b9bd7c6257731ad5d840d832a8e40c121f7f1045a8d5b57ca8ef0943fdf333c55bccb341b529d2ca24664694203b906e510ecab5 diff --git a/sci-libs/rocBLAS/files/rocBLAS-4.3.0-fix-glibc-2.32-and-above.patch b/sci-libs/rocBLAS/files/rocBLAS-4.3.0-fix-glibc-2.32-and-above.patch deleted file mode 100644 index a4d9f0bab344..000000000000 --- a/sci-libs/rocBLAS/files/rocBLAS-4.3.0-fix-glibc-2.32-and-above.patch +++ /dev/null @@ -1,25 +0,0 @@ -https://sourceware.org/glibc/wiki/Release/2.32#Deprectation_sys_siglist.2C__sys_siglist.2C_sys_sigabbrev - ---- rocBLAS-rocm-4.1.0/clients/gtest/rocblas_test.cpp -+++ rocBLAS-rocm-4.1.0/clients/gtest/rocblas_test.cpp -@@ -173,7 +173,7 @@ void catch_signals_and_exceptions_as_fai - // Set up the return point, and handle siglongjmp returning back to here - if(sigsetjmp(t_handler.sigjmp_buf, true)) - { -- FAIL() << "Received " << sys_siglist[t_handler.signal] << " signal"; -+ FAIL() << "Received " << strsignal(t_handler.signal) << " signal"; - } - else - { - ---- rocBLAS-rocm-4.1.0/clients/include/utility.hpp -+++ rocBLAS-rocm-4.1.0/clients/include/utility.hpp -@@ -39,7 +39,7 @@ - // puts, putchar, fputs, printf, fprintf, vprintf, vfprintf: Use rocblas_cout or rocblas_cerr - // sprintf, vsprintf: Possible buffer overflows; us snprintf or vsnprintf instead - // strerror: Thread-unsafe; use snprintf / dprintf with %m or strerror_* alternatives --// strsignal: Thread-unsafe; use sys_siglist[signal] instead -+// strsignal: Thread-unsafe; use strsignal(signal) instead - // strtok: Thread-unsafe; use strtok_r - // gmtime, ctime, asctime, localtime: Thread-unsafe - // tmpnam: Thread-unsafe; use mkstemp or related functions instead diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.0.2-change-default-Tensile-library-dir.patch b/sci-libs/rocBLAS/files/rocBLAS-5.0.2-change-default-Tensile-library-dir.patch deleted file mode 100644 index 618847b8fb8d..000000000000 --- a/sci-libs/rocBLAS/files/rocBLAS-5.0.2-change-default-Tensile-library-dir.patch +++ /dev/null @@ -1,47 +0,0 @@ -change the default rocm tensile library search path -Index: rocBLAS-rocm-5.0.1/library/src/tensile_host.cpp -=================================================================== ---- rocBLAS-rocm-5.0.1.orig/library/src/tensile_host.cpp -+++ rocBLAS-rocm-5.0.1/library/src/tensile_host.cpp -@@ -558,40 +558,8 @@ namespace - // Find the location of librocblas.dll/.so - // Fall back on hard-coded path if static library or not found - --#ifndef ROCBLAS_STATIC_LIB --#ifdef WIN32 -- // wchar_t wpath[MAX_PATH + 1] = {0}; -- // if(GetModuleFileNameW(GetModuleHandle("rocblas.dll"), wpath, MAX_PATH + 1)) -- // { -- // std::wstring wspath(wpath); -- // std::string tmp(wspath.begin(), wspath.end()); - -- std::vector<TCHAR> dll_path(MAX_PATH + 1); -- if(GetModuleFileNameA( -- GetModuleHandleA("rocblas.dll"), dll_path.data(), MAX_PATH + 1)) -- { -- std::string tmp(dll_path.begin(), dll_path.end()); -- std::filesystem::path exepath = tmp; -- if(exepath.has_filename()) -- { -- path = exepath.remove_filename().string(); -- } -- } --#else -- dl_iterate_phdr(rocblas_dl_iterate_phdr_callback, NULL); -- if(rocblas_so_path.size()) -- path = std::string{dirname(&rocblas_so_path[0])}; --#endif --#endif // ifndef ROCBLAS_STATIC_LIB -- -- // Find the location of the libraries -- if(TestPath(path + "/../../Tensile/library")) -- path += "/../../Tensile/library"; -- else -- path += "/library"; -- -- if(TestPath(path + "/" + processor)) -- path += "/" + processor; -+ path="@GENTOO_PORTAGE_EPREFIX@/usr/lib64/rocblas/library"; - } - - // only load modules for the current architecture diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.0.2-cpp_lib_filesystem.patch b/sci-libs/rocBLAS/files/rocBLAS-5.0.2-cpp_lib_filesystem.patch deleted file mode 100644 index 500abbacfdc2..000000000000 --- a/sci-libs/rocBLAS/files/rocBLAS-5.0.2-cpp_lib_filesystem.patch +++ /dev/null @@ -1,50 +0,0 @@ ---- b/clients/common/utility.cpp 2022-01-26 03:31:42.000000000 +0800 -+++ a/clients/common/utility.cpp 2022-02-22 18:45:35.319732953 +0800 -@@ -23,6 +23,7 @@ - #include <fcntl.h> - #endif - -+#include <version> - #ifdef __cpp_lib_filesystem - #include <filesystem> - #else ---- b/clients/include/rocblas_data.hpp 2022-01-26 03:31:42.000000000 +0800 -+++ a/clients/include/rocblas_data.hpp 2022-02-22 18:44:51.275733070 +0800 -@@ -17,6 +17,7 @@ - #include <string> - #include <utility> - -+#include<version> - #ifdef __cpp_lib_filesystem - #include <filesystem> - #else ---- b/clients/include/singletons.hpp 2022-01-26 03:31:42.000000000 +0800 -+++ a/clients/include/singletons.hpp 2022-02-22 18:47:55.139732583 +0800 -@@ -3,6 +3,6 @@ - * ************************************************************************ */ - - // global for device memory padding see d_vector.hpp -+#include<cstddef> -- - extern size_t g_DVEC_PAD; - void d_vector_set_pad_length(size_t pad); ---- b/clients/include/testing_logging.hpp 2022-01-26 03:31:42.000000000 +0800 -+++ a/clients/include/testing_logging.hpp 2022-02-22 18:44:13.115733171 +0800 -@@ -22,6 +22,7 @@ - #include <unistd.h> - #endif - -+#include<version> - #ifdef __cpp_lib_filesystem - #include <filesystem> - #else ---- b/clients/include/testing_ostream_threadsafety.hpp 2022-01-26 03:31:42.000000000 +0800 -+++ a/clients/include/testing_ostream_threadsafety.hpp 2022-02-22 18:45:19.055732996 +0800 -@@ -30,6 +30,7 @@ - #include <sys/types.h> - #endif - -+#include <version> - #ifdef __cpp_lib_filesystem - #include <filesystem> - #else diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.0.2-unbundle-Tensile.patch b/sci-libs/rocBLAS/files/rocBLAS-5.0.2-unbundle-Tensile.patch deleted file mode 100644 index 75f673f63d47..000000000000 --- a/sci-libs/rocBLAS/files/rocBLAS-5.0.2-unbundle-Tensile.patch +++ /dev/null @@ -1,25 +0,0 @@ -Index: rocBLAS-rocm-5.0.2/CMakeLists.txt -=================================================================== ---- rocBLAS-rocm-5.0.2.orig/CMakeLists.txt -+++ rocBLAS-rocm-5.0.2/CMakeLists.txt -@@ -271,20 +271,6 @@ if(NOT SKIP_LIBRARY) - set( Tensile_ROOT "${CMAKE_BINARY_DIR}/virtualenv/Lib/site-packages/Tensile" ) - endif() - -- include(virtualenv) -- if (Tensile_TEST_LOCAL_PATH) -- virtualenv_install(${Tensile_TEST_LOCAL_PATH}) -- message (STATUS "using local Tensile from ${Tensile_TEST_LOCAL_PATH}, copied to ${Tensile_ROOT}") -- else() -- # Use the virtual-env setup and download package from specified repot: -- set( tensile_fork "ROCmSoftwarePlatform" CACHE STRING "Tensile fork to use" ) -- file (STRINGS "tensile_tag.txt" read_tensile_tag) -- set( tensile_tag ${read_tensile_tag} CACHE STRING "Tensile tag to download" ) -- virtualenv_install("git+https://github.com/${tensile_fork}/Tensile.git@${tensile_tag}") -- message (STATUS "using GIT Tensile fork=${tensile_fork} from branch=${tensile_tag}") -- endif() -- message(STATUS "Adding ${VIRTUALENV_HOME_DIR} to CMAKE_PREFIX_PATH") -- list(APPEND CMAKE_PREFIX_PATH ${VIRTUALENV_HOME_DIR}) - if (TENSILE_VERSION) - find_package(Tensile ${TENSILE_VERSION} EXACT REQUIRED HIP LLVM OpenMP PATHS "${INSTALLED_TENSILE_PATH}") - else() diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-unbundle-Tensile.patch b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-unbundle-Tensile.patch deleted file mode 100644 index 114c10502e68..000000000000 --- a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-unbundle-Tensile.patch +++ /dev/null @@ -1,26 +0,0 @@ -Index: rocBLAS-rocm-5.4.2/CMakeLists.txt -=================================================================== ---- rocBLAS-rocm-5.4.2.orig/CMakeLists.txt -+++ rocBLAS-rocm-5.4.2/CMakeLists.txt -@@ -138,21 +138,6 @@ if(NOT SKIP_LIBRARY) - - set( Tensile_TEST_LOCAL_PATH "" CACHE PATH "Use local Tensile directory instead of fetching a GitHub branch" ) - -- include(virtualenv) -- -- if (Tensile_TEST_LOCAL_PATH) -- virtualenv_install(${Tensile_TEST_LOCAL_PATH}) -- message (STATUS "using local Tensile from ${Tensile_TEST_LOCAL_PATH}, copied to ${Tensile_ROOT}") -- else() -- # Use the virtual-env setup and download package from specified repot: -- set( tensile_fork "ROCmSoftwarePlatform" CACHE STRING "Tensile fork to use" ) -- file (STRINGS "tensile_tag.txt" read_tensile_tag) -- set( tensile_tag ${read_tensile_tag} CACHE STRING "Tensile tag to download" ) -- virtualenv_install("git+https://github.com/${tensile_fork}/Tensile.git@${tensile_tag}") -- message (STATUS "using GIT Tensile fork=${tensile_fork} from branch=${tensile_tag}") -- endif() -- message(STATUS "Adding ${VIRTUALENV_HOME_DIR} to CMAKE_PREFIX_PATH") -- list(APPEND CMAKE_PREFIX_PATH ${VIRTUALENV_HOME_DIR}) - if (TENSILE_VERSION) - find_package(Tensile ${TENSILE_VERSION} EXACT REQUIRED HIP LLVM OpenMP PATHS "${INSTALLED_TENSILE_PATH}") - else() diff --git a/sci-libs/rocBLAS/rocBLAS-5.1.3-r4.ebuild b/sci-libs/rocBLAS/rocBLAS-5.1.3-r4.ebuild deleted file mode 100644 index a77c621f57ce..000000000000 --- a/sci-libs/rocBLAS/rocBLAS-5.1.3-r4.ebuild +++ /dev/null @@ -1,114 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DIR="docs" -DOCS_DEPEND="media-gfx/graphviz" -ROCM_VERSION=${PV} -inherit cmake docs edo multiprocessing prefix rocm - -DESCRIPTION="AMD's library for BLAS on ROCm" -HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocBLAS" -SRC_URI="https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-${PV}.tar.gz -> rocm-${P}.tar.gz - https://media.githubusercontent.com/media/littlewu2508/littlewu2508.github.io/main/gentoo-distfiles/${PN}-5.0.2-Tensile-asm_full-navi22.tar.gz" -S="${WORKDIR}/${PN}-rocm-${PV}" - -LICENSE="BSD" -KEYWORDS="~amd64" -SLOT="0/$(ver_cut 1-2)" -IUSE="benchmark test" -REQUIRED_USE="${ROCM_REQUIRED_USE}" -RESTRICT="!test? ( test )" - -BDEPEND=" - dev-build/rocm-cmake - dev-util/Tensile:${SLOT} -" - -DEPEND=" - >=dev-cpp/msgpack-cxx-6.0.0 - dev-util/hip - test? ( - virtual/blas - dev-cpp/gtest - llvm-runtimes/openmp - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-4.3.0-fix-glibc-2.32-and-above.patch - "${FILESDIR}"/${PN}-5.0.2-change-default-Tensile-library-dir.patch - "${FILESDIR}"/${PN}-5.0.2-cpp_lib_filesystem.patch - "${FILESDIR}"/${PN}-5.0.2-unbundle-Tensile.patch - ) - -src_prepare() { - cmake_src_prepare - cp -a "${WORKDIR}/asm_full/" library/src/blas3/Tensile/Logic/ || die - # Fit for Gentoo FHS rule - sed -e "/PREFIX rocblas/d" \ - -e "/<INSTALL_INTERFACE/s:include:include/rocblas:" \ - -e "s:rocblas/include:include/rocblas:" \ - -e "s:\\\\\${CPACK_PACKAGING_INSTALL_PREFIX}rocblas/lib:${EPREFIX}/usr/$(get_libdir)/rocblas:" \ - -e "s:share/doc/rocBLAS:share/doc/${P}:" \ - -e "/rocm_install_symlink_subdir( rocblas )/d" -i library/src/CMakeLists.txt || die - - sed -e "s:,-rpath=.*\":\":" -i clients/CMakeLists.txt || die - - eprefixify library/src/tensile_host.cpp -} - -src_configure() { - addpredict /dev/random - addpredict /dev/kfd - addpredict /dev/dri/ - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=On - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DTensile_LOGIC="asm_full" - -DTensile_COMPILER="hipcc" - -DTensile_LIBRARY_FORMAT="msgpack" - -DTensile_CODE_OBJECT_VERSION="V3" - -DTensile_TEST_LOCAL_PATH="${EPREFIX}/usr/share/Tensile" - -DTensile_ROOT="${EPREFIX}/usr/share/Tensile" - -DBUILD_WITH_TENSILE=ON - -DCMAKE_INSTALL_INCLUDEDIR="include/rocblas" - -DBUILD_TESTING=OFF - -DBUILD_CLIENTS_SAMPLES=OFF - -DBUILD_CLIENTS_TESTS=$(usex test ON OFF) - -DBUILD_CLIENTS_BENCHMARKS=$(usex benchmark ON OFF) - -DTensile_CPU_THREADS=$(makeopts_jobs) - ) - - CXX=hipcc cmake_src_configure -} - -src_compile() { - docs_compile - cmake_src_compile -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}"/clients/staging || die - export ROCBLAS_TEST_TIMEOUT=3600 ROCBLAS_TENSILE_LIBPATH="${BUILD_DIR}/Tensile/library" - export LD_LIBRARY_PATH="${BUILD_DIR}/clients:${BUILD_DIR}/library/src" - edob ./${PN,,}-test -} - -src_install() { - cmake_src_install - - if use benchmark; then - cd "${BUILD_DIR}" || die - dolib.so clients/librocblas_fortran_client.so - dobin clients/staging/rocblas-bench - fi -} diff --git a/sci-libs/rocBLAS/rocBLAS-5.4.2-r3.ebuild b/sci-libs/rocBLAS/rocBLAS-5.4.2-r3.ebuild deleted file mode 100644 index 9050d13eb312..000000000000 --- a/sci-libs/rocBLAS/rocBLAS-5.4.2-r3.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DOCS_BUILDER="doxygen" -DOCS_DIR="docs" -DOCS_DEPEND="media-gfx/graphviz" -ROCM_VERSION=${PV} -inherit cmake docs edo multiprocessing rocm - -DESCRIPTION="AMD's library for BLAS on ROCm" -HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocBLAS" -SRC_URI="https://github.com/ROCmSoftwarePlatform/rocBLAS/archive/rocm-${PV}.tar.gz -> rocm-${P}.tar.gz - https://media.githubusercontent.com/media/littlewu2508/littlewu2508.github.io/main/gentoo-distfiles/${PN}-5.4.2-Tensile-asm_full-navi22.tar.gz" -S="${WORKDIR}/${PN}-rocm-${PV}" - -LICENSE="BSD" -KEYWORDS="~amd64" -SLOT="0/$(ver_cut 1-2)" -IUSE="benchmark test" -REQUIRED_USE="${ROCM_REQUIRED_USE}" -RESTRICT="!test? ( test )" - -BDEPEND=" - >=dev-build/rocm-cmake-5.3 - dev-util/Tensile:${SLOT} -" - -DEPEND=" - >=dev-cpp/msgpack-cxx-6.0.0 - dev-util/hip - test? ( - virtual/blas - dev-cpp/gtest - llvm-runtimes/openmp - ) - benchmark? ( - virtual/blas - llvm-runtimes/openmp - ) -" - -QA_FLAGS_IGNORED="/usr/lib64/rocblas/library/.*" - -PATCHES=( - "${FILESDIR}"/${PN}-5.4.2-cpp_lib_filesystem.patch - "${FILESDIR}"/${PN}-5.4.2-unbundle-Tensile.patch - "${FILESDIR}"/${PN}-5.4.2-add-missing-header.patch - "${FILESDIR}"/${PN}-5.4.2-link-cblas.patch - ) - -src_prepare() { - cmake_src_prepare - cp -a "${WORKDIR}/asm_full/" library/src/blas3/Tensile/Logic/ || die - sed -e "s:,-rpath=.*\":\":" -i clients/CMakeLists.txt || die -} - -src_configure() { - addpredict /dev/random - addpredict /dev/kfd - addpredict /dev/dri/ - - local mycmakeargs=( - -DCMAKE_SKIP_RPATH=On - -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF - -DROCM_SYMLINK_LIBS=OFF - -DAMDGPU_TARGETS="$(get_amdgpu_flags)" - -DTensile_LOGIC="asm_full" - -DTensile_COMPILER="hipcc" - -DTensile_LIBRARY_FORMAT="msgpack" - -DTensile_CODE_OBJECT_VERSION="V3" - -DTensile_TEST_LOCAL_PATH="${EPREFIX}/usr/share/Tensile" - -DTensile_ROOT="${EPREFIX}/usr/share/Tensile" - -DBUILD_WITH_TENSILE=ON - -DCMAKE_INSTALL_INCLUDEDIR="include/rocblas" - -DBUILD_CLIENTS_SAMPLES=OFF - -DBUILD_CLIENTS_TESTS=$(usex test ON OFF) - -DBUILD_CLIENTS_BENCHMARKS=$(usex benchmark ON OFF) - -DTensile_CPU_THREADS=$(makeopts_jobs) - ) - - CXX=hipcc cmake_src_configure -} - -src_compile() { - docs_compile - cmake_src_compile -} - -src_test() { - check_amdgpu - cd "${BUILD_DIR}"/clients/staging || die - export ROCBLAS_TEST_TIMEOUT=3600 ROCBLAS_TENSILE_LIBPATH="${BUILD_DIR}/Tensile/library" - export LD_LIBRARY_PATH="${BUILD_DIR}/clients:${BUILD_DIR}/library/src" - edob ./${PN,,}-test -} - -src_install() { - cmake_src_install - - if use benchmark; then - cd "${BUILD_DIR}" || die - dolib.a clients/librocblas_fortran_client.a - dobin clients/staging/rocblas-bench - fi -}