diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /sci-libs/rocPRIM | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'sci-libs/rocPRIM')
-rw-r--r-- | sci-libs/rocPRIM/Manifest | 4 | ||||
-rw-r--r-- | sci-libs/rocPRIM/rocPRIM-4.3.0-r2.ebuild (renamed from sci-libs/rocPRIM/rocPRIM-4.3.0-r1.ebuild) | 4 | ||||
-rw-r--r-- | sci-libs/rocPRIM/rocPRIM-5.0.2.ebuild | 77 |
3 files changed, 82 insertions, 3 deletions
diff --git a/sci-libs/rocPRIM/Manifest b/sci-libs/rocPRIM/Manifest index 646086ebe0b8..0a8e55bd3d35 100644 --- a/sci-libs/rocPRIM/Manifest +++ b/sci-libs/rocPRIM/Manifest @@ -1,5 +1,7 @@ DIST rocPRIM-4.0.0.tar.gz 285576 BLAKE2B 44f3542068dee48c0f2bb475f4d3fd74592fe27f4ca00a7b754014deaaa7187c4363d4b2e7fe13ff771b48d2885b848b9632ef71ce85e80e0946e4e5f13495d8 SHA512 c37fce4f16788d82379459af69b9f47f2bccb3b0e655e7314a23936cc99a474afb0092f240bd950341f1b02ce93d03abce0df7ce62ffcb5d577171ce870dd1d2 DIST rocPRIM-4.3.0.tar.gz 290071 BLAKE2B f69ada9859ef9238d4f8c50bc2b10d131c986dbd8982cc0c7f8614cd51746080aba3b3e7b0ef3e1d5006c179a823f4fcb8ce03cc0a4c88fad3cb46947c7b7fb6 SHA512 9925f832637d19360bf1624dd7a6ef931fb740ee725e35c3159a09a3c569af6f61e3337124c8e0561e60c8595d0d533a4402b91345056ff8d276c6e1dd491036 +DIST rocPRIM-5.0.2.tar.gz 364102 BLAKE2B 4e56f37c8ed02a4c4dadfab25e1e840c85c90b6f656858ad15dfa0f8de38b8f130d49a49461dfa09d3f07389e57b2a9cdefe5958b6faa80a639f98d276ca3e66 SHA512 d4d14203d721f7f62f35b2af91c261366f150a24fc21dc5a508743ee5a6246a6a3ad437db03f3ddaad5799cc2ba6d7b8d1e37a8e038eb4156d7962313e36f520 EBUILD rocPRIM-4.0.0-r1.ebuild 1264 BLAKE2B eb3c16d117287c9a7c13b761b10af63e79b6f83d079f469319878c033bf690fed40ce0e73d29d06c2511fbc6e9a7cb87452d9019bb50e55a3a24b5b94dbe323f SHA512 69f4fb57bb026e85eebae3655a7f3f7f0ebc0155e6e503df93043cdceec8b1d5ec3a4bba4e217ea64def8be19314ddd7b4352ee6d4c8a003f9c447d25db3163a -EBUILD rocPRIM-4.3.0-r1.ebuild 2060 BLAKE2B e85478525571c5b95f69db2419fbf151e68a41c09fb804480ca230ad2b562e4df5caf97b70c202f89cd11996819a4732614a3022cb6a46664e5cf289ff2ebc1b SHA512 e0e7c62a5db2ebd3055415fd5800d2c97fc2a7c6af465c138181722e4c983a53f1e313b94a2ff3f6fda04fbd5195c88c127693e356d16d3cd52752c42ef75dac +EBUILD rocPRIM-4.3.0-r2.ebuild 2044 BLAKE2B fccd3a591b642e211f209d67bd3713feacf99f362ae9ae77de6b0976c5e31bddf0073b4e2973ef6482a97118ea488fd8866d17fc82c4ea0abe1d599c6daa8c64 SHA512 f5b24193b281e60da19eba8d29dafede7dfa18e2a02606cfa0800a04fbe8a6d5ecd5b4b2f619d677e84e4e302b9a3a0e3a3f38d02ef59777461f6585c0a53ad3 +EBUILD rocPRIM-5.0.2.ebuild 2059 BLAKE2B 171352aa4fb5897ce6624d8812357d9bb1a929e4062ecb8da46e6bad0427ab9c0fe36978d7ca6b2e2c205d0c34e5ecc25988d8fcbee8574a758f398b4c6c78aa SHA512 785d96ff01213edcc08674a610dcf4cf799c80badb2345bc63c2bc7cbff0e6aa639f71466caf8213c0b2f014adeb91e92881c26e18b408a559e59a08b3f6bb3e MISC metadata.xml 698 BLAKE2B 41839a7a92ff73302c0f0dd8be65cd33882a71cdc0dc481a78198e148597c6345bac8870181d73097cbdc55cf65cc5b45de3ab43a9bf851d2312340bfa63a36e SHA512 379960d8a0d1375f37e27fa7f6ec9dc4d0b05bbfb2bd0f99e224abdd72d36c3a979e59c9551469d686e14770317138f7b9c3ce4b5ed8116f04b5bd0be6ea976e diff --git a/sci-libs/rocPRIM/rocPRIM-4.3.0-r1.ebuild b/sci-libs/rocPRIM/rocPRIM-4.3.0-r2.ebuild index 0e7bba7b2a7c..eba4e1317b94 100644 --- a/sci-libs/rocPRIM/rocPRIM-4.3.0-r1.ebuild +++ b/sci-libs/rocPRIM/rocPRIM-4.3.0-r2.ebuild @@ -14,9 +14,9 @@ KEYWORDS="~amd64" SLOT="0/$(ver_cut 1-2)" IUSE="benchmark test" -RDEPEND="dev-util/hip:${SLOT} +RDEPEND="dev-util/hip benchmark? ( dev-cpp/benchmark )" -BDEPEND="dev-util/rocm-cmake:${SLOT} +BDEPEND="dev-util/rocm-cmake >=dev-util/cmake-3.22 test? ( dev-cpp/gtest )" DEPEND="${RDEPEND}" diff --git a/sci-libs/rocPRIM/rocPRIM-5.0.2.ebuild b/sci-libs/rocPRIM/rocPRIM-5.0.2.ebuild new file mode 100644 index 000000000000..e14d3d1eae50 --- /dev/null +++ b/sci-libs/rocPRIM/rocPRIM-5.0.2.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="HIP parallel primitives for developing performant GPU-accelerated code on ROCm" +HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocPRIM" +SRC_URI="https://github.com/ROCmSoftwarePlatform/rocPRIM/archive/rocm-${PV}.tar.gz -> rocPRIM-${PV}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64" +SLOT="0/$(ver_cut 1-2)" +IUSE="benchmark test" + +RDEPEND="dev-util/hip + benchmark? ( dev-cpp/benchmark ) + test? ( dev-cpp/gtest )" +BDEPEND="dev-util/rocm-cmake + >=dev-util/cmake-3.22" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/rocPRIM-rocm-${PV}" + +RESTRICT="!test? ( test )" + +src_prepare() { + # "hcc" is depcreated, new platform ist "rocclr" + sed -e "/HIP_PLATFORM STREQUAL/s,hcc,rocclr," -i cmake/VerifyCompiler.cmake || die + + # Install according to FHS + sed -e "/PREFIX rocprim/d" \ + -e "/INSTALL_INTERFACE/s,rocprim/include,include/rocprim," \ + -e "/DESTINATION/s,rocprim/include,include," \ + -e "/rocm_install_symlink_subdir(rocprim)/d" \ + -i rocprim/CMakeLists.txt || die + + # disable downloading googletest and googlebenchmark + sed -r -e '/Downloading/{:a;N;/\n *\)$/!ba; d}' -i cmake/Dependencies.cmake || die + + # remove GIT dependency + sed -r -e '/find_package\(Git/{:a;N;/\nendif/!ba; d}' -i cmake/Dependencies.cmake || die + + # install benchmark files + if use benchmark; then + sed -e "/get_filename_component/s,\${BENCHMARK_SOURCE},${PN}_\${BENCHMARK_SOURCE}," \ + -e "/add_executable/a\ install(TARGETS \${BENCHMARK_TARGET})" -i benchmark/CMakeLists.txt || die + fi + + eapply_user + cmake_src_prepare +} + +src_configure() { + # Grant access to the device + addwrite /dev/kfd + addpredict /dev/dri/ + + # Compiler to use + export CXX=hipcc + + local mycmakeargs=( + -DBUILD_TEST=$(usex test ON OFF) + -DBUILD_BENCHMARK=$(usex benchmark ON OFF) + ${AMDGPU_TARGETS+-DAMDGPU_TARGETS="${AMDGPU_TARGETS}"} + ) + + cmake_src_configure +} + +src_test() { + # Grant access to the device + addwrite /dev/kfd + addwrite /dev/dri/ + MAKEOPTS="-j1" cmake_src_test +} |