mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
sci-libs/hipSOLVER: add 7.0.2
Bug: https://bugs.gentoo.org/964799 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/44165 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST hipSOLVER-rocm-6.3.3.tar.gz 2573877 BLAKE2B 54d9736b63bfd314a155968737bf59c26685237e63e41a1500aa22841bb3c92a126645629dee8e9a87e0ee7a62035738dd85347a7dd0e4f05c7044755ef5e71e SHA512 d6213c1000e640bf29d96917df6f51f8f5fc30ec808d6473b7dd159f9ce160535170cec0f769c3749934e1896b9d3fcc1df21d5cda27b4d233e6a8c50e23c114
|
||||
DIST hipSOLVER-rocm-6.4.3.tar.gz 2580341 BLAKE2B 28f40af2887befece27186aba11d6e777ae705225e4daa5b7f4599cd7bc719e908481840b3d41480b00b2945ab51e276a1962bc5fe6f44ad873eac2871f157cf SHA512 6cd8e4e0cfb0963325092ff3d8341fd630dfe3f4dbc0f15a625aa23c3a43225fc288523548cec3db0c698d765c5c37bdf22225235c2eefab6b8ee18bb0ffdffd
|
||||
DIST hipSOLVER-rocm-7.0.2.tar.gz 2585966 BLAKE2B f24472b493a2744df5b8ef853537cea392f6efe5538a75dd51bbe05ad4883df679777575471ddeefa6b913dd1b76864188d4a589f469564e9d4364016589995c SHA512 2a52de08805bcb8c4231857a24f9db5d93f8fc70c9fc5fefe5a693a8af94b04c0bd8fbdc755294555df0e092b0103110ab8037bedf663073b81f0f14cc33528f
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
Gentoo install cholmod.h into /usr/include directly and uses PkgConfig
|
||||
--- a/library/src/CMakeLists.txt
|
||||
+++ b/library/src/CMakeLists.txt
|
||||
@@ -153,14 +153,10 @@ if(NOT USE_CUDA)
|
||||
list(APPEND static_depends PACKAGE rocsparse)
|
||||
endif()
|
||||
|
||||
- find_package(CHOLMOD QUIET)
|
||||
- if(NOT TARGET SuiteSparse::CHOLMOD)
|
||||
- # try again with the custom find modules for older versions of suitesparse
|
||||
- list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/suitesparse)
|
||||
- find_package(CHOLMOD REQUIRED)
|
||||
- endif()
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(CHOLMOD REQUIRED IMPORTED_TARGET cholmod)
|
||||
|
||||
- target_link_libraries( hipsolver PRIVATE roc::rocsparse SuiteSparse::CHOLMOD)
|
||||
+ target_link_libraries( hipsolver PRIVATE roc::rocsparse PkgConfig::CHOLMOD)
|
||||
set_source_files_properties(${hipsolver_source}
|
||||
PROPERTIES
|
||||
COMPILE_DEFINITIONS HAVE_ROCSPARSE
|
||||
@@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ROCM_VERSION=${PV}
|
||||
|
||||
inherit cmake rocm
|
||||
|
||||
DESCRIPTION="CU / ROCM agnostic marshalling library for LAPACK routines on the GPU"
|
||||
HOMEPAGE="https://github.com/ROCm/rocm-libraries/tree/develop/projects/hipsolver"
|
||||
SRC_URI="https://github.com/ROCm/hipSOLVER/archive/refs/tags/rocm-${PV}.tar.gz -> hipSOLVER-rocm-${PV}.tar.gz"
|
||||
S="${WORKDIR}/hipSOLVER-rocm-${PV}"
|
||||
|
||||
REQUIRED_USE="${ROCM_REQUIRED_USE}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/$(ver_cut 1-2)"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="sparse"
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="
|
||||
dev-util/hip:${SLOT}
|
||||
sci-libs/rocSOLVER:${SLOT}
|
||||
sci-libs/rocBLAS:${SLOT}
|
||||
sparse? (
|
||||
sci-libs/suitesparseconfig
|
||||
sci-libs/cholmod
|
||||
)
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-7.0.1-find-cholmod.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
rocm_use_hipcc
|
||||
|
||||
local mycmakeargs=(
|
||||
-DGPU_TARGETS="$(get_amdgpu_flags)"
|
||||
-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
|
||||
-DROCM_SYMLINK_LIBS=OFF
|
||||
-DBUILD_WITH_SPARSE=$(usex sparse ON OFF)
|
||||
)
|
||||
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -14,7 +14,7 @@
|
||||
<name>Sv. Lockal</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">ROCm/hipSOLVER</remote-id>
|
||||
<remote-id type="github">ROCm/rocm-libraries</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="sparse">Build hipSOLVER with sparse functionality (sci-libs/cholmod)</flag>
|
||||
|
||||
Reference in New Issue
Block a user