diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-29 04:38:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-29 04:38:41 +0100 |
commit | d5c5aa9b48bd6a821f5e0a1a98474ac35fb21360 (patch) | |
tree | 9de3699cbe327fb5dd93a6ec37b895f9fdb94494 /sci-libs/rocSOLVER/rocSOLVER-5.4.2.ebuild | |
parent | c6a12f3c8604a9269cfb82d666fc716df0e67792 (diff) |
gentoo auto-resync : 29:07:2023 - 04:38:40
Diffstat (limited to 'sci-libs/rocSOLVER/rocSOLVER-5.4.2.ebuild')
-rw-r--r-- | sci-libs/rocSOLVER/rocSOLVER-5.4.2.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sci-libs/rocSOLVER/rocSOLVER-5.4.2.ebuild b/sci-libs/rocSOLVER/rocSOLVER-5.4.2.ebuild new file mode 100644 index 000000000000..8088b8523a68 --- /dev/null +++ b/sci-libs/rocSOLVER/rocSOLVER-5.4.2.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ROCM_VERSION=${PV} + +inherit cmake edo rocm + +DESCRIPTION="Implementation of a subset of LAPACK functionality on the ROCm platform" +HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocSOLVER" +SRC_URI="https://github.com/ROCmSoftwarePlatform/rocSOLVER/archive/rocm-${PV}.tar.gz -> rocSOLVER-${PV}.tar.gz" + +LICENSE="BSD" +KEYWORDS="~amd64" +SLOT="0/$(ver_cut 1-2)" + +IUSE="test benchmark" +REQUIRED_USE="${ROCM_REQUIRED_USE}" + +RDEPEND="dev-util/hip + sci-libs/rocBLAS[${ROCM_USEDEP}] + dev-libs/libfmt + benchmark? ( virtual/blas )" +DEPEND="${RDEPEND}" +BDEPEND="test? ( dev-cpp/gtest + >=dev-util/cmake-3.22 + virtual/blas )" + +PATCHES=( "${FILESDIR}"/${PN}-5.4.2-libfmt9.patch ) + +RESTRICT="!test? ( test )" + +S=${WORKDIR}/${PN}-rocm-${PV} + +src_configure() { + # avoid sandbox violation + addpredict /dev/kfd + addpredict /dev/dri/ + + local mycmakeargs=( + -DCMAKE_SKIP_RPATH=On + -DAMDGPU_TARGETS="$(get_amdgpu_flags)" + -Wno-dev + -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF + -DROCM_SYMLINK_LIBS=OFF + -DBUILD_CLIENTS_SAMPLES=NO + -DBUILD_CLIENTS_TESTS=$(usex test ON OFF) + -DBUILD_CLIENTS_BENCHMARKS=$(usex benchmark ON OFF) + ) + + CXX=hipcc cmake_src_configure +} + +src_test() { + check_amdgpu + cd "${BUILD_DIR}"/clients/staging || die + LD_LIBRARY_PATH="${BUILD_DIR}/library/src" edob ./rocsolver-test +} + +src_install() { + cmake_src_install + + if use benchmark; then + cd "${BUILD_DIR}" || die + dobin clients/staging/rocsolver-bench + fi +} |