# 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 "/