public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocRAND/files/, sci-libs/rocRAND/
@ 2023-11-19 16:32 Benda XU
  0 siblings, 0 replies; 3+ messages in thread
From: Benda XU @ 2023-11-19 16:32 UTC (permalink / raw
  To: gentoo-commits

commit:     908cf70bee0e7cc186580e2d58bb17bb2b0ee0dc
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Wed Oct 18 19:03:41 2023 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sun Nov 19 16:32:16 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=908cf70b

sci-libs/rocRAND: add 5.7.1 and fix_generator_alignements.patch

Bug: https://github.com/gentoo/gentoo/pull/33400
Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>

 sci-libs/rocRAND/Manifest                          |  1 +
 .../rocRAND-5.7.1_fix_generator_alignment.patch    | 16 ++++++
 sci-libs/rocRAND/rocRAND-5.7.1.ebuild              | 67 ++++++++++++++++++++++
 3 files changed, 84 insertions(+)

diff --git a/sci-libs/rocRAND/Manifest b/sci-libs/rocRAND/Manifest
index e49a7db31d6a..9c1124f37a03 100644
--- a/sci-libs/rocRAND/Manifest
+++ b/sci-libs/rocRAND/Manifest
@@ -1,3 +1,4 @@
 DIST hipRAND-de941a7eb9ede2a862d719cd3ca23234a3692d07.tar.gz 80820 BLAKE2B f2894187455cf1da70c486e9efc336a01dc53589c56afe994858b2344c1e74e8d35260f70ad9cd80c5da1103dd9e98da6f5f2bf8e1ddf97023effc8a434a76ce SHA512 cdc70799ddca456c37c2a65875b98acff74800aa2b4f28d77b27c38c32428dd5edb2837bf88bfb6fcc32bdae7f2b27f1b547831bad98101b04959b7ba6b74a85
 DIST rocRAND-5.1.3.tar.gz 11729425 BLAKE2B f61aaedb7b72ceba3868a2069c93db1e2cd88a7a0188a9d5a33f520af3b42235c0dca62495460fd5e7abbca5fe7acc01acfdc90e53ae9a6e45128df5da472f49 SHA512 12859e52b79e40fcd1fb97d0915c191bbbc24e31e00aac4dbeecb625f9978a00ece3d7a42d0f9d37516031c1fbeb66e14dcd476ea83fe32fb13e0dd5c3964a28
 DIST rocRAND-5.6.0.tar.gz 23189913 BLAKE2B 2418a90c323f483d1f92630df7134bc060b9052f580259924e79680a7ec37857574973dda69dc3c28fdd5b88a5fc1d29757ed637fcde0730c53b9a5f09668aba SHA512 cccd26a6b80a7705644803a85dad3a43de3f4e2f73f964f2b5aa410f71d3782b68d6cc1ad60b7f7be5193a94098ed3fa25cad30c3acbc141522cdd738d3328a5
+DIST rocRAND-5.7.1.tar.gz 23189653 BLAKE2B c70ab6f3b718c2430394f63b93bee15fa72daae704883fdb203b98b0dc4763b46bc27886af64c48bf4ebe8da9b919158b8cd346f70f9b76bf0492ce3b2c1e20e SHA512 4d74bce9fbd3cb45e3f057d38df747270c6986fea7ad524f7a88109b6a53a4ea5dcd60d4bbf2364888501e9444245fb6898bb79fccad0e37b61e819e8c4ed863

diff --git a/sci-libs/rocRAND/files/rocRAND-5.7.1_fix_generator_alignment.patch b/sci-libs/rocRAND/files/rocRAND-5.7.1_fix_generator_alignment.patch
new file mode 100644
index 000000000000..84b58266220c
--- /dev/null
+++ b/sci-libs/rocRAND/files/rocRAND-5.7.1_fix_generator_alignment.patch
@@ -0,0 +1,16 @@
+Fix crashes due to unaligned allocations in heap with new of structs when AVX2 or AVX512 is used.
+This patch takes the simplest approach just shifts responsibility to the standard.
+Similar approach in Eigen is named defined as: EIGEN_HAS_CXX17_OVERALIGN.
+
+Upstream bug: https://github.com/ROCmSoftwarePlatform/rocRAND/issues/403
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -119,7 +119,7 @@ endif()
+ option(DISABLE_WERROR "Disable building with Werror" ON)
+ 
+ # Build CXX flags
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ set(CMAKE_CXX_EXTENSIONS OFF)
+ if(DISABLE_WERROR)

diff --git a/sci-libs/rocRAND/rocRAND-5.7.1.ebuild b/sci-libs/rocRAND/rocRAND-5.7.1.ebuild
new file mode 100644
index 000000000000..f2fc17ed6222
--- /dev/null
+++ b/sci-libs/rocRAND/rocRAND-5.7.1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ROCM_VERSION=${PV}
+
+inherit cmake rocm
+
+DESCRIPTION="Generate pseudo-random and quasi-random numbers"
+HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocRAND"
+SRC_URI="https://github.com/ROCmSoftwarePlatform/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="benchmark test"
+REQUIRED_USE="${ROCM_REQUIRED_USE}"
+
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-5.4.2_stdint-gcc13.patch
+	"${FILESDIR}"/${PN}-5.7.1_fix_generator_alignment.patch
+)
+
+RDEPEND="dev-util/hip"
+DEPEND="${RDEPEND}
+dev-util/rocm-cmake
+test? ( dev-cpp/gtest )"
+BDEPEND="dev-util/rocm-cmake
+>=dev-util/cmake-3.22"
+
+S="${WORKDIR}/rocRAND-rocm-${PV}"
+
+src_configure() {
+	addpredict /dev/kfd
+	addpredict /dev/dri/
+
+	local mycmakeargs=(
+		-DCMAKE_SKIP_RPATH=ON
+		-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
+		-DBUILD_HIPRAND=OFF
+		-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
+		-DROCM_SYMLINK_LIBS=OFF
+		-DBUILD_TEST=$(usex test ON OFF)
+		-DBUILD_BENCHMARK=$(usex benchmark ON OFF)
+	)
+
+	CXX=hipcc cmake_src_configure
+}
+
+src_test() {
+	check_amdgpu
+	export LD_LIBRARY_PATH="${BUILD_DIR}/library"
+	# uses HMM to fit tests to default <512M iGPU VRAM
+	MAKEOPTS="-j1" ROCRAND_USE_HMM="1" cmake_src_test
+}
+
+src_install() {
+	cmake_src_install
+
+	if use benchmark; then
+		cd "${BUILD_DIR}"/benchmark
+		dobin benchmark_rocrand_*
+	fi
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocRAND/files/, sci-libs/rocRAND/
@ 2025-01-26 14:00 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2025-01-26 14:00 UTC (permalink / raw
  To: gentoo-commits

commit:     5ea5cbe8296c62669befeb745c0dec9a80706eba
Author:     Yiyang Wu <xgreenlandforwyy <AT> gmail <DOT> com>
AuthorDate: Sun Jan 12 14:01:59 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 13:59:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ea5cbe8

sci-libs/rocRAND: Fix compilation issue with benchmark use flag

Signed-off-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/40224
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/rocRAND-6.3.0-benchmark-1.8.patch        | 30 ++++++++++++++++++++++
 sci-libs/rocRAND/rocRAND-6.3.0.ebuild              |  3 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/sci-libs/rocRAND/files/rocRAND-6.3.0-benchmark-1.8.patch b/sci-libs/rocRAND/files/rocRAND-6.3.0-benchmark-1.8.patch
new file mode 100644
index 000000000000..a8afeb1e2f8e
--- /dev/null
+++ b/sci-libs/rocRAND/files/rocRAND-6.3.0-benchmark-1.8.patch
@@ -0,0 +1,30 @@
+Backported from https://github.com/ROCm/rocRAND/commit/ad8cdd8dd0dee6ef4166b0b560fe63127c06e08b
+Index: rocRAND-rocm-6.3.0/benchmark/custom_csv_formater.hpp
+===================================================================
+--- rocRAND-rocm-6.3.0.orig/benchmark/custom_csv_formater.hpp
++++ rocRAND-rocm-6.3.0/benchmark/custom_csv_formater.hpp
+@@ -152,10 +152,8 @@ void customCSVReporter::ReportRuns(const
+ void customCSVReporter::PrintRunData(const Run& run)
+ {
+     std::ostream& Out = GetOutputStream();
+-    std::ostream& Err = GetErrorStream();
+ 
+     //get the name of the engine and distribution:
+-
+     std::string temp = run.benchmark_name();
+ 
+     std::string deviceName = std::string(temp.begin(), temp.begin() + temp.find("<"));
+@@ -186,13 +184,6 @@ void customCSVReporter::PrintRunData(con
+ 
+     Out << engineName << "," << disName << "," << mode << ",";
+     Out << CsvEscape(run.benchmark_name()) << ",";
+-    if(run.error_occurred)
+-    {
+-        Err << std::string(elements.size() - 3, ',');
+-        Err << "true,";
+-        Err << CsvEscape(run.error_message) << "\n";
+-        return;
+-    }
+ 
+     // Do not print iteration on bigO and RMS report
+     if(!run.report_big_o && !run.report_rms)

diff --git a/sci-libs/rocRAND/rocRAND-6.3.0.ebuild b/sci-libs/rocRAND/rocRAND-6.3.0.ebuild
index e3b1aa20b634..d5b38455f3d0 100644
--- a/sci-libs/rocRAND/rocRAND-6.3.0.ebuild
+++ b/sci-libs/rocRAND/rocRAND-6.3.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -22,6 +22,7 @@ RESTRICT="!test? ( test )"
 
 PATCHES=(
 	"${FILESDIR}"/${PN}-5.7.1_fix_generator_alignment.patch
+	"${FILESDIR}"/${PN}-6.3.0-benchmark-1.8.patch
 )
 
 RDEPEND="dev-util/hip"


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocRAND/files/, sci-libs/rocRAND/
@ 2025-02-13  8:38 Sam James
  0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2025-02-13  8:38 UTC (permalink / raw
  To: gentoo-commits

commit:     7d4bb186653395f8f308ac141c3782ec867bd690
Author:     Sv. Lockal <lockalsash <AT> gmail <DOT> com>
AuthorDate: Thu Jan 30 14:28:10 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 13 08:35:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d4bb186

sci-libs/rocRAND: drop 5.1.3, 5.6.0-r1

Signed-off-by: Sv. Lockal <lockalsash <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/rocRAND/Manifest                          |  3 -
 .../rocRAND/files/rocRAND-5.1.3_no-symlink.patch   | 38 -----------
 .../rocRAND/files/rocRAND-5.1.3_stdint-gcc13.patch | 33 ---------
 sci-libs/rocRAND/rocRAND-5.1.3.ebuild              | 79 ----------------------
 sci-libs/rocRAND/rocRAND-5.6.0-r1.ebuild           | 63 -----------------
 5 files changed, 216 deletions(-)

diff --git a/sci-libs/rocRAND/Manifest b/sci-libs/rocRAND/Manifest
index a1fe310fa77a..92fc28db4ac0 100644
--- a/sci-libs/rocRAND/Manifest
+++ b/sci-libs/rocRAND/Manifest
@@ -1,6 +1,3 @@
-DIST hipRAND-de941a7eb9ede2a862d719cd3ca23234a3692d07.tar.gz 80820 BLAKE2B f2894187455cf1da70c486e9efc336a01dc53589c56afe994858b2344c1e74e8d35260f70ad9cd80c5da1103dd9e98da6f5f2bf8e1ddf97023effc8a434a76ce SHA512 cdc70799ddca456c37c2a65875b98acff74800aa2b4f28d77b27c38c32428dd5edb2837bf88bfb6fcc32bdae7f2b27f1b547831bad98101b04959b7ba6b74a85
-DIST rocRAND-5.1.3.tar.gz 11729425 BLAKE2B f61aaedb7b72ceba3868a2069c93db1e2cd88a7a0188a9d5a33f520af3b42235c0dca62495460fd5e7abbca5fe7acc01acfdc90e53ae9a6e45128df5da472f49 SHA512 12859e52b79e40fcd1fb97d0915c191bbbc24e31e00aac4dbeecb625f9978a00ece3d7a42d0f9d37516031c1fbeb66e14dcd476ea83fe32fb13e0dd5c3964a28
-DIST rocRAND-5.6.0.tar.gz 23189913 BLAKE2B 2418a90c323f483d1f92630df7134bc060b9052f580259924e79680a7ec37857574973dda69dc3c28fdd5b88a5fc1d29757ed637fcde0730c53b9a5f09668aba SHA512 cccd26a6b80a7705644803a85dad3a43de3f4e2f73f964f2b5aa410f71d3782b68d6cc1ad60b7f7be5193a94098ed3fa25cad30c3acbc141522cdd738d3328a5
 DIST rocRAND-5.7.1.tar.gz 23189653 BLAKE2B c70ab6f3b718c2430394f63b93bee15fa72daae704883fdb203b98b0dc4763b46bc27886af64c48bf4ebe8da9b919158b8cd346f70f9b76bf0492ce3b2c1e20e SHA512 4d74bce9fbd3cb45e3f057d38df747270c6986fea7ad524f7a88109b6a53a4ea5dcd60d4bbf2364888501e9444245fb6898bb79fccad0e37b61e819e8c4ed863
 DIST rocRAND-6.1.1.tar.gz 26683143 BLAKE2B 4108584c6372adbf2f9ef887cf1aa08f5afdfa489ba0739d247e693628f3e23978fe023c2896e7bff666b8822b0011fd3f635338b013898f8d76b3f31ec21f6c SHA512 d8df0e6bf843719e59434c952ef56b112ada23d0c226bec9f2974ed762500202ac809f495de61a4086289e35c2f4b670f4ed7dcd7092a158c0a731c368950a44
 DIST rocRAND-6.3.0.tar.gz 44906536 BLAKE2B 204ba943ba840d78dfc7a69f762dca270f7cb9633dcb9f47df0832958b0c6bf279b0154539c01d0a6037aed9c8ec38edbd566fc102410687d188ff7299d23515 SHA512 aa8f6abc798ac1b24908ec5ef45b38bc63ee79ccf7c333b42f16cb0155f22d1fea34753e61de93a4eaf485457124f23626dd79d35021e3e896bff915a2722455

diff --git a/sci-libs/rocRAND/files/rocRAND-5.1.3_no-symlink.patch b/sci-libs/rocRAND/files/rocRAND-5.1.3_no-symlink.patch
deleted file mode 100644
index e0a4b8d66ae1..000000000000
--- a/sci-libs/rocRAND/files/rocRAND-5.1.3_no-symlink.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-commit 3b24ff660f83e18cadd3da272f182aaf8f98a755
-Author: Liam Wrubleski <Liam.Wrubleski@amd.com>
-Date:   Mon Jan 24 13:49:52 2022 -0700
-
-    Revert symlinks
-
-diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
-index 17a8c4c..89322d8 100644
---- a/library/CMakeLists.txt
-+++ b/library/CMakeLists.txt
-@@ -60,27 +60,6 @@ rocm_install(
-         "${CMAKE_BINARY_DIR}/library/include"
- )
- 
--# Create symlinks
--if(WIN32)
--    set(SYMLINK_COMMAND "file(COPY \${SRC} DESTINATION \${DEST_DIR})" )
--else()
--    set(SYMLINK_COMMAND "execute_process(COMMAND ln -sf \${SRC_REL} \${DEST})" )
--endif()
--set(INSTALL_SYMLINK_COMMAND "
--    set(SRC_DIR \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/include/rocrand)
--    file(GLOB_RECURSE FILES RELATIVE \${SRC_DIR} \${SRC_DIR}/*)
--    foreach(FILE \${FILES})
--        set(SRC \${SRC_DIR}/\${FILE})
--        set(DEST \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/rocrand/include/\${FILE})
--        get_filename_component(DEST_DIR \${DEST} DIRECTORY)
--        file(MAKE_DIRECTORY \${DEST_DIR})
--        file(RELATIVE_PATH SRC_REL \${DEST_DIR} \${SRC})
--        message(STATUS \"symlink: \${SRC_REL} -> \${DEST}\")
--        ${SYMLINK_COMMAND}
--    endforeach()
--")
--rocm_install(CODE "${INSTALL_SYMLINK_COMMAND}")
--
- set(FORTRAN_SRCS_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/rocrand/src/fortran")
- configure_file(
-     src/rocrand-fortran-config.cmake.in

diff --git a/sci-libs/rocRAND/files/rocRAND-5.1.3_stdint-gcc13.patch b/sci-libs/rocRAND/files/rocRAND-5.1.3_stdint-gcc13.patch
deleted file mode 100644
index e80155f24da7..000000000000
--- a/sci-libs/rocRAND/files/rocRAND-5.1.3_stdint-gcc13.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-commit d79e778080766cf359d6658367e1c7ce0668daa4
-Author: Benda Xu <orv@debian.org>
-Date:   Sat Jul 29 23:03:22 2023 +0800
-
-    sobol*_direction_vector_generator.cpp: include stdint.h for uint*_t
-    
-    Reference: https://gcc.gnu.org/gcc-13/porting_to.html
-    Signed-off-by: Benda Xu <heroxbd@gentoo.org>
-
-diff --git a/tools/sobol32_direction_vector_generator.cpp b/tools/sobol32_direction_vector_generator.cpp
-index 16c4354..eb316c7 100644
---- a/tools/sobol32_direction_vector_generator.cpp
-+++ b/tools/sobol32_direction_vector_generator.cpp
-@@ -20,6 +20,7 @@
- 
- #include <iostream>
- #include <fstream>
-+#include <cstdint>
- #include <string>
- #include <iomanip>
- 
-diff --git a/tools/sobol64_direction_vector_generator.cpp b/tools/sobol64_direction_vector_generator.cpp
-index e520903..ecdbdc4 100644
---- a/tools/sobol64_direction_vector_generator.cpp
-+++ b/tools/sobol64_direction_vector_generator.cpp
-@@ -20,6 +20,7 @@
- 
- #include <iostream>
- #include <fstream>
-+#include <cstdint>
- #include <string>
- #include <iomanip>
- 

diff --git a/sci-libs/rocRAND/rocRAND-5.1.3.ebuild b/sci-libs/rocRAND/rocRAND-5.1.3.ebuild
deleted file mode 100644
index bb518842e253..000000000000
--- a/sci-libs/rocRAND/rocRAND-5.1.3.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# 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="Generate pseudo-random and quasi-random numbers"
-HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocRAND"
-HIPRAND_COMMIT_HASH=de941a7eb9ede2a862d719cd3ca23234a3692d07
-SRC_URI="https://github.com/ROCmSoftwarePlatform/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz
-https://github.com/ROCmSoftwarePlatform/hipRAND/archive/${HIPRAND_COMMIT_HASH}.tar.gz -> hipRAND-${HIPRAND_COMMIT_HASH}.tar.gz"
-
-LICENSE="MIT"
-KEYWORDS="~amd64"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="benchmark test"
-REQUIRED_USE="${ROCM_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-PATCHES=( "${FILESDIR}"/${PN}-5.1.3_stdint-gcc13.patch
-	"${FILESDIR}"/${PN}-5.1.3_no-symlink.patch )
-
-RDEPEND="dev-util/hip"
-DEPEND="${RDEPEND}
-dev-build/rocm-cmake
-test? ( dev-cpp/gtest )"
-BDEPEND="dev-build/rocm-cmake
->=dev-build/cmake-3.22"
-
-S="${WORKDIR}/rocRAND-rocm-${PV}"
-
-src_prepare() {
-	rmdir hipRAND || die
-	mv -v ../hipRAND-${HIPRAND_COMMIT_HASH} hipRAND || die
-	# change installed include and lib dir, and avoid symlink overwrite the installed headers
-	# avoid setting RPATH
-	sed -r -e "s:(hip|roc)rand/lib:\${CMAKE_INSTALL_LIBDIR}:" \
-		-e "/INSTALL_RPATH/d" -i library/CMakeLists.txt || die
-
-	# remove GIT dependency
-	sed -e "/find_package(Git/,+4d" -i cmake/Dependencies.cmake || die
-
-	eapply_user
-	cmake_src_prepare
-}
-
-src_configure() {
-	addpredict /dev/kfd
-	addpredict /dev/dri/
-
-	local mycmakeargs=(
-		-DCMAKE_SKIP_RPATH=On
-		-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
-		-DBUILD_HIPRAND=ON
-		-DROCM_SYMLINK_LIBS=OFF
-		-DBUILD_TEST=$(usex test ON OFF)
-		-DBUILD_BENCHMARK=$(usex benchmark ON OFF)
-	)
-
-	CXX=hipcc cmake_src_configure
-}
-
-src_test() {
-	check_amdgpu
-	export LD_LIBRARY_PATH="${BUILD_DIR}/library"
-	MAKEOPTS="-j1" cmake_src_test
-}
-
-src_install() {
-	cmake_src_install
-
-	if use benchmark; then
-		cd "${BUILD_DIR}"/benchmark
-		dobin benchmark_rocrand_*
-	fi
-}

diff --git a/sci-libs/rocRAND/rocRAND-5.6.0-r1.ebuild b/sci-libs/rocRAND/rocRAND-5.6.0-r1.ebuild
deleted file mode 100644
index cadf2c863445..000000000000
--- a/sci-libs/rocRAND/rocRAND-5.6.0-r1.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# 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="Generate pseudo-random and quasi-random numbers"
-HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocRAND"
-SRC_URI="https://github.com/ROCmSoftwarePlatform/${PN}/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="MIT"
-KEYWORDS="~amd64"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="benchmark test"
-REQUIRED_USE="${ROCM_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-PATCHES=( "${FILESDIR}"/${PN}-5.4.2_stdint-gcc13.patch )
-
-RDEPEND="dev-util/hip"
-DEPEND="${RDEPEND}
-	dev-build/rocm-cmake
-	benchmark? ( dev-cpp/benchmark )
-	test? ( dev-cpp/gtest )"
-BDEPEND="dev-build/rocm-cmake
-	>=dev-build/cmake-3.22"
-
-S="${WORKDIR}/rocRAND-rocm-${PV}"
-
-src_configure() {
-	addpredict /dev/kfd
-	addpredict /dev/dri/
-
-	local mycmakeargs=(
-		-DCMAKE_SKIP_RPATH=On
-		-DAMDGPU_TARGETS="$(get_amdgpu_flags)"
-		-DBUILD_HIPRAND=OFF
-		-DBUILD_FILE_REORG_BACKWARD_COMPATIBILITY=OFF
-		-DROCM_SYMLINK_LIBS=OFF
-		-DBUILD_TEST=$(usex test ON OFF)
-		-DBUILD_BENCHMARK=$(usex benchmark ON OFF)
-	)
-
-	CXX=hipcc cmake_src_configure
-}
-
-src_test() {
-	check_amdgpu
-	export LD_LIBRARY_PATH="${BUILD_DIR}/library"
-	MAKEOPTS="-j1" cmake_src_test
-}
-
-src_install() {
-	cmake_src_install
-
-	if use benchmark; then
-		cd "${BUILD_DIR}"/benchmark
-		dobin benchmark_rocrand_*
-	fi
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-13  8:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-26 14:00 [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocRAND/files/, sci-libs/rocRAND/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2025-02-13  8:38 Sam James
2023-11-19 16:32 Benda XU

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox