diff options
Diffstat (limited to 'sci-libs/hipSOLVER')
-rw-r--r-- | sci-libs/hipSOLVER/Manifest | 5 | ||||
-rw-r--r-- | sci-libs/hipSOLVER/files/hipSOLVER-6.1.1-find-cholmod.patch | 29 | ||||
-rw-r--r-- | sci-libs/hipSOLVER/hipSOLVER-6.1.1.ebuild | 47 | ||||
-rw-r--r-- | sci-libs/hipSOLVER/metadata.xml | 3 |
4 files changed, 83 insertions, 1 deletions
diff --git a/sci-libs/hipSOLVER/Manifest b/sci-libs/hipSOLVER/Manifest index 6c96ae23564d..2ba646602c30 100644 --- a/sci-libs/hipSOLVER/Manifest +++ b/sci-libs/hipSOLVER/Manifest @@ -1,3 +1,6 @@ +AUX hipSOLVER-6.1.1-find-cholmod.patch 965 BLAKE2B 0d4f37dbae67bf2605a981f3a01c9c4fe681953d59c4b17c4abbe9953154dafd94a9e66b710f4384035521e6b2e0d98ebaa63d41a44ba263e53f71725ca7e2f0 SHA512 e22bb5470ed857faa7aed8522fcc67f92994260386f302af6112dc6a7bb8f9ca20b22fe1261f4f7dec87c0e04138a8a1f64894556db003e2fccf924dd5cd4c7b DIST hipSOLVER-rocm-5.7.1.tar.gz 1516012 BLAKE2B 8d0966d34877978784b9872150283719602465c85036c3a74a72a2fe7c516b6029af3f4aefbc022088b2cf37bb1e0a450c0221aef0ac3227018020de340adfcd SHA512 f9c14b51ea582f17d1b323c7d066d9c0c95f4250f08515768d7a11067774fd2841fa3dec7354d3c98e56bd8dd53cff3b993c68b1d7df4b24f562b3afe9c4625e +DIST hipSOLVER-rocm-6.1.1.tar.gz 2553462 BLAKE2B 77731b876a7fe5f80f79e5af5128a84d8a5d4dee6d511f3e1cf4964845b636380f7f1e19f07e84ed24b98e99c3bdfbba623b97b48cf4ea1bc09a4c1bd3dccaed SHA512 4f28ecd807717013318f293df8c48d7674f64fd3a538c2b827f4188a00a36165f48277d5ac50e806461d52a8a3b6d626cab91ff7c6687b17fea2580461e08de9 EBUILD hipSOLVER-5.7.1.ebuild 820 BLAKE2B 2e172aea78616bb75696b6dcf81e7ebee8902ff15335a5d7d36e9728e74eb20c320124491bccfb6cef9b4804e14fd7c58accacce500d13c043f6a104407f0c77 SHA512 83d99abbb856cfe7ce029fd8c7529fdd07be56e60a4ce6f00b662c5a6c3c829e99e66081fa907e61ee673320991fcbccca26b493022cdcae5e6d12dac04b62ea -MISC metadata.xml 618 BLAKE2B a62e9c459afe2c341849d43f9dbf2304389dfa1f50ace6616c5bd2903488e49d0e1d235808a46dafb782d638a3f209706220d66264fda845b701c19e55febce2 SHA512 c9654b6e8a610638093d3f26710292cf62e0d9e1a9dddc160c4d30e59e7a12f70e39eb965995187fe54b6f3648fb44810ca8b983a886af7a731d62eb06c9464b +EBUILD hipSOLVER-6.1.1.ebuild 1002 BLAKE2B 463115ba89403b1f0a0788aebd8bba9b48c6c6a39585a79ffe6b3ef8e1602f22e5257949bf2cddf2f3819dc4610981da6efcaff63d699fb6b9c8b7c31e58ed89 SHA512 99c71c0f1b9276331754c9de130b11edbf1a7336a6d42020bb4a9bb5dc5e7591dc6b603821810976d69c7a3a4cce9318635be9b58c9ac90d677240e657924d97 +MISC metadata.xml 727 BLAKE2B d10c0be13cf9f705b7c7c0b223b91da6f0d06faccaf5a7c5e8a6ed03e0c3d32e943a742f1a9feb9452f21f36de99f1b74b3ec91ad2d32a6c7c94088eee66ed22 SHA512 14521a8ef7d65220b9b5ee23c7600f11a8329adb23993bbbda70ccfeb3cc4de5eb25713cb523890f2868983a409ae2a735d4191457b1fd8647b01751193e2cde diff --git a/sci-libs/hipSOLVER/files/hipSOLVER-6.1.1-find-cholmod.patch b/sci-libs/hipSOLVER/files/hipSOLVER-6.1.1-find-cholmod.patch new file mode 100644 index 000000000000..da43f4ff116b --- /dev/null +++ b/sci-libs/hipSOLVER/files/hipSOLVER-6.1.1-find-cholmod.patch @@ -0,0 +1,29 @@ +cholmod.h is in /usr/include in Gentoo, use pkg-config to find it +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -221,11 +221,9 @@ if( NOT USE_CUDA ) + if( BUILD_WITH_SPARSE ) + list(APPEND hipsolver_pkgdeps "rocsparse >= 2.3.0") + +- if( SYSTEM_OS STREQUAL "centos" OR SYSTEM_OS STREQUAL "rhel" ) +- list(APPEND hipsolver_pkgdeps "suitesparse") +- else() +- list(APPEND hipsolver_pkgdeps "libcholmod3" "libsuitesparseconfig5") +- endif() ++ find_package(PkgConfig REQUIRED) ++ pkg_check_modules(CHOLMOD REQUIRED IMPORTED_TARGET cholmod) ++ target_link_libraries(hipsolver-common INTERFACE PkgConfig::CHOLMOD) + endif( ) + + rocm_package_add_dependencies(DEPENDS ${hipsolver_pkgdeps}) +--- a/library/src/amd_detail/hipsolver_sparse.cpp ++++ b/library/src/amd_detail/hipsolver_sparse.cpp +@@ -45,7 +45,7 @@ + + #ifdef HAVE_ROCSPARSE + #include <rocsparse/rocsparse.h> +-#include <suitesparse/cholmod.h> ++#include <cholmod.h> + #endif + + #undef TRUE diff --git a/sci-libs/hipSOLVER/hipSOLVER-6.1.1.ebuild b/sci-libs/hipSOLVER/hipSOLVER-6.1.1.ebuild new file mode 100644 index 000000000000..be450babaed3 --- /dev/null +++ b/sci-libs/hipSOLVER/hipSOLVER-6.1.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 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/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 + sci-libs/rocSOLVER:${SLOT}[${ROCM_USEDEP}] + sparse? ( + sci-libs/suitesparseconfig + sci-libs/cholmod + ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-6.1.1-find-cholmod.patch +) + +src_configure() { + local mycmakeargs=( + -DAMDGPU_TARGETS="$(get_amdgpu_flags)" + -DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF + -DROCM_SYMLINK_LIBS=OFF + -DBUILD_WITH_SPARSE=$(usex sparse ON OFF) + ) + + CXX=hipcc cmake_src_configure +} diff --git a/sci-libs/hipSOLVER/metadata.xml b/sci-libs/hipSOLVER/metadata.xml index dfd45574f216..9aa1438b519c 100644 --- a/sci-libs/hipSOLVER/metadata.xml +++ b/sci-libs/hipSOLVER/metadata.xml @@ -16,4 +16,7 @@ <upstream> <remote-id type="github">ROCmSoftwarePlatform/hipSOLVER</remote-id> </upstream> + <use> + <flag name="sparse">Build hipSOLVER with sparse functionality (sci-libs/cholmod)</flag> + </use> </pkgmetadata> |