summaryrefslogtreecommitdiff
path: root/dev-libs/rocm-device-libs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2025-02-14 00:13:14 +0000
committerV3n3RiX <venerix@koprulu.sector>2025-02-14 00:13:14 +0000
commit4fda045f90a4e301329bddb766e2e12a0b4401de (patch)
tree1d486767bfd9de15d6c11d341408385eb7f7debe /dev-libs/rocm-device-libs
parent965058196f44550f3bc491dd85064071e085b776 (diff)
gentoo auto-resync : 14:02:2025 - 00:13:14
Diffstat (limited to 'dev-libs/rocm-device-libs')
-rw-r--r--dev-libs/rocm-device-libs/Manifest11
-rw-r--r--dev-libs/rocm-device-libs/files/rocm-device-libs-5.1.3-llvm-link.patch13
-rw-r--r--dev-libs/rocm-device-libs/files/rocm-device-libs-5.1.3-test-bitcode-dir.patch24
-rw-r--r--dev-libs/rocm-device-libs/files/rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch216
-rw-r--r--dev-libs/rocm-device-libs/rocm-device-libs-5.1.3-r1.ebuild47
-rw-r--r--dev-libs/rocm-device-libs/rocm-device-libs-5.3.3.ebuild47
-rw-r--r--dev-libs/rocm-device-libs/rocm-device-libs-5.4.3.ebuild48
-rw-r--r--dev-libs/rocm-device-libs/rocm-device-libs-5.5.1.ebuild49
8 files changed, 0 insertions, 455 deletions
diff --git a/dev-libs/rocm-device-libs/Manifest b/dev-libs/rocm-device-libs/Manifest
index b76ec7ac45ea..07851076e13d 100644
--- a/dev-libs/rocm-device-libs/Manifest
+++ b/dev-libs/rocm-device-libs/Manifest
@@ -1,6 +1,3 @@
-AUX rocm-device-libs-5.1.3-llvm-link.patch 694 BLAKE2B a67a1207bb23ceaa304f2fd59000a14a8bd232fd6eaf3510370f148b0bd18630ec4309a3d2ee2c5b8045114841a0548e840601abb153fb4adfc1209dd16b0509 SHA512 75f6fb5f3aab7f7951d110b9097a1521adb261f286b5e04867fd2753bbfcc29987440fd929c9dac0ac90fde98616ce7693c2b5041d4d07c437087ee17303a22e
-AUX rocm-device-libs-5.1.3-test-bitcode-dir.patch 1181 BLAKE2B 0358dfc81ed98acd2a2bb399b7d8aa72c2a0bf20da3c45ad02d5e1c46df7f98bc18efe28867725e0fc1df041c1f1147bc25a2a5aa67b18f53d859dbf66aa71c7 SHA512 a0ffdda4ab42978f3b09bab424f91267bfc267f751d489aaee9c6eb3979ae5efd8130129e4b476fdcfbc73b779d9aad79fda60a8f7a64e8a5b35516d8fe6979f
-AUX rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch 6801 BLAKE2B ae3be5c1d8a7a84e8ddee2471628804365dd1d9b1ae3aa981b5e47015b82c115d5da5ea6fedcacc3ccf11c768af8130375493fdbcc9a53567e633cc57e7e750e SHA512 c28a08253025b150523282231c64e5d310206e6e406efdc2a0f39ce69b2f1663fed6991e27b2124eb3434c51efb8d172eceb752f366bc2aab7b3eb63ad9dfa35
AUX rocm-device-libs-5.5.0-test-bitcode-dir.patch 1838 BLAKE2B f1fa6e0b69b5e4e6634cb92c7b9ad1f9621a1b639d27d8e4d15ceeeb79ba58cfc8a7bb17f354995d8e4e88b5a74aa09354b0b986c6e802b1d4eb58ba3905f1e5 SHA512 115b5ec119400e6cbc6293d3819bb1dbd67455c60ed7b8c63443603a1748c954e558d3ffcabe76c232f742ce52d6df9b3c647ce1289a78226fd1507e6497793d
AUX rocm-device-libs-5.5.1-fix-llvm-link.patch 681 BLAKE2B 1f28e1c92295caec2b50d576830ba896b82c92fe93db9243e4f397c9fde2de090e3f7f8c13ec8a0371d95978807642b433f4dc8b1644595da7f7576fe6b12a35 SHA512 6205cdb17692b4ebbce9f6a0e910c50ed9bd628d1863716f98e87857002399a3edbec3b9c50291c453262d0c169ed62ada5889fb1c735af04fd97623514e1fb2
AUX rocm-device-libs-6.0.0-add-gws-attribute.patch 581 BLAKE2B 40a8b66e44109a0d32c69ee76078c6ae8e45c52b1c3b8fb510040d8c616fbb552c0bfe77d5406a4a632cc0aca112292df2a720a5aba6fde63ad6853af613b565 SHA512 36b8851722e1fdc20de4ebc5875111017c0c80ba34263526f1228d3eb8fbb80ff6b458fecd665be9121a7c083f827343833481c53b221050446486139efdee40
@@ -13,15 +10,7 @@ DIST llvm-project-rocm-6.1.1.tar.gz 196027084 BLAKE2B 3ef0b6e3c47c66fd80289373e6
DIST llvm-project-rocm-6.1.2.tar.gz 195992927 BLAKE2B d821f29f2f1f7c1ff414c63a710281f16d2a394b21f3365d01b86710cc09ed27e514b49fb744bf6a36b38815afa56cc26d44f0238f38479a0c2db9bf9989f389 SHA512 5f7e5dbe5976141de35e96e603624bd9d5a2c08b0690ba9fcd81d1b32f540f94bb9f4b74539e2838fd60ae1312dbe5e0b429ba80a03871782cdf3bd834940ce0
DIST llvm-project-rocm-6.3.0.tar.gz 206677330 BLAKE2B f3e68a8c94599e3a938d3e761af163b9f010a06421680ee70aaaaf8073fb18da9151729c311fc4bd12b281b3afdd15e61cea31c970f0e4d36bb97838fa17ca5f SHA512 674fc3242c6dbb6962f1002dc34ccbd618da6adeb640bac15265d22fdcedf9de16ea3d79899891734ccc1099cb5b5ed9110b1162f4515c4cbc0d847810682b59
DIST llvm-project-rocm-6.3.2.tar.gz 206671202 BLAKE2B a280e2be22b8eb9fd51814074447baed3637231d4bfbe391047a1fb2409197c8d8ba58cebb3aeaec15aa4daee9371311274b30ede48e0039d7c84e432b15de1a SHA512 314e27577af76268635f3c96ee3516829e4622913c3d0c4c68eccbaee0c9f7f5fc031cbd35827deb4bc29712592c424e296c15ce8c500c897bfb3eb19455899c
-DIST rocm-device-libs-5.1.3.tar.gz 242862 BLAKE2B 68d66de897f461e9f876de5fe2214803d4c00665651dea6af0952f0ce579c6704a5ec41b08971fa613ade309a0a85cb611b56b592dc2a25e247183e634ea3378 SHA512 cc3dfb8d4b4841ba777355c537175259d0019159ff462358320674b85082cccd99f6462f60fee66228ddfb88fade043445c1bac62504aa1462ba61b7e2751de7
-DIST rocm-device-libs-5.3.3.tar.gz 245690 BLAKE2B 475c0d818b8b0f090a8daeca2910cd4002e4cdf505d020327f46eb5f864a26937a6a3dfe4ff7b188ebda0f936b1c396f2163bb27b9e2a62c5976e60fa60856ac SHA512 8f6f2fc1534e348e02ba30a25cfc6017f8eab768968b5d0344a5ea7d65c4f0a874072f9e53919c74545814330602ef7c190753c7ff019137230e02f58a5d3a5d
-DIST rocm-device-libs-5.4.3.tar.gz 246095 BLAKE2B eb749346c96d465a5f22831968ccbd71f02749e6aa0d9c2becc0f378641ca0f65c1a131bfd3ed226f838b4208091fcc920b1e31b427adbd69a42881898668e6a SHA512 67b904363a3cff6c15bbd032cbc72cb5cd5f82acaa68c74391dbcf415266e8f35486a496b69b69e1fc0721e0e4e21fb6a6b9c180a46cb59cdcf53916be846ca4
-DIST rocm-device-libs-5.5.1.tar.gz 245900 BLAKE2B f713b1f12c7be33a4854d79791f592b8e89e2bc463769ec8cdd807483f0e5ca93d7fc852b6cf41d5ad0401d07adc97de9fb1fa54b77af83f665e282d6c0a43e7 SHA512 0138ddc94ce4a81202bdafccbbecef8145c6ddf82c3a14d92bb80b2bed3d3b73898f84279cef89110c50a9cc51e32de1323cc11a1f97c5da4f7f843b393425d0
DIST rocm-device-libs-5.7.1.tar.gz 248357 BLAKE2B 829704382e9420ad79724a250ccfd65278eb697498805297d1a52b8ea35dbff46e11514b681243d61bfac05b8a9734f0cf22d721603e48fe2f9864368222b0bc SHA512 8755d0584fa3b8239f5642b4fb8f5e8dea20bbaca2ff8883894d3583913e9a1fd1552492b36e8ceff092f795783b734e68b002ee0c93711dccdf8e72c528c27c
-EBUILD rocm-device-libs-5.1.3-r1.ebuild 1184 BLAKE2B 76c1a7896d51ce5797af910f5bb5b96d8097e8b58f4308676234a6c85ba3ddd1ea73a18fb92fe88c936df89fbf5bca2db058b03487bc289cbe50a4070c6cb4b8 SHA512 dd467d58f862370cc08dde96b907542118959fba7de4c4c04c59ee6fcf087a9c78d6667977221862401f321cf985773d725c15947709b738cfc1c351adb94c5c
-EBUILD rocm-device-libs-5.3.3.ebuild 1184 BLAKE2B 76c1a7896d51ce5797af910f5bb5b96d8097e8b58f4308676234a6c85ba3ddd1ea73a18fb92fe88c936df89fbf5bca2db058b03487bc289cbe50a4070c6cb4b8 SHA512 dd467d58f862370cc08dde96b907542118959fba7de4c4c04c59ee6fcf087a9c78d6667977221862401f321cf985773d725c15947709b738cfc1c351adb94c5c
-EBUILD rocm-device-libs-5.4.3.ebuild 1250 BLAKE2B 6000c6bc6dc75cf647295f5122749e4c9b72d785a23902e565e54dfc41f3cbb1c216b376fe1ac2bf01c3f7b99cf309eb8b864fd34e2c0b9f2d96382c65ec5afc SHA512 fd47115cbf83126180fc68e27d8597644a779c7f6e42d9d1da4676fd6281778e5a1320f5a8875e1d5bd11801a601f1ad6c507e6d9a48c3393acc6ce89e860fa1
-EBUILD rocm-device-libs-5.5.1.ebuild 1206 BLAKE2B 01dee1e4c7118bca0e2a8e017418bea09a36ea4dedf1d452376b9d1e9d28533e6b718be3f169c6add4188d0d648ce2c1b6b5ef7a6d5e8eefa2d5fc3e49aa2e05 SHA512 8048e7658bda7721bf85adfa521ed94f6648bb2f70ecffcd09b7726bb8f512b4db81b7bcdc08e42c834829cc4fb88f6f6fe9c2bb3eac9387ab735a8d32b3866b
EBUILD rocm-device-libs-5.7.1.ebuild 1455 BLAKE2B 85df640675a3e163397691198be61e9c7cc11bc02b9cbfbcf4820ed2d4403218b60c83ba4fbcf38a62bb0df49eea6447e94d27f7ecc6beaebb5777d2bf750d04 SHA512 ba10a16ae8f530fbe783fa4b42ff02b9ed1a4e53fc42d40e201d0609fe4300814067d29875367eb67dbf045f7e058cac82d38ce3867f8c720d75bfcbf65aa2d4
EBUILD rocm-device-libs-6.1.1.ebuild 2378 BLAKE2B 806c3f420e5156f770429208b481b1768350918b1cd9cd9f373bb85e80186132cd2e102c60e9271e8895661c2877c6b979565385e53cc0d544cc9458f31b4746 SHA512 0e773fc157f02e6b8b4beee34bc87217b4c80b83854c85973ab83c595dc9fe29960128d789cb1846c3878f1fe3547aac293d2edc2fbd7cae633cae3d85e71e6f
EBUILD rocm-device-libs-6.1.2.ebuild 2421 BLAKE2B 8aa35401997852ccbd17cfe6fb836ff4496e1a4ae79fa40f03d4d91e9bc7947fbbb026a484fd7f197c32113037e601aecfe543b3050cd53d99fa65c776433eee SHA512 675809b9017a65b8bc13b88a096fe3e4247947dd3b49501f476eee642b600a7baaa4d9a9c123f1ea3917d3b69d8d3f7225dd330ae56ebf0e83cc6abea9517fdb
diff --git a/dev-libs/rocm-device-libs/files/rocm-device-libs-5.1.3-llvm-link.patch b/dev-libs/rocm-device-libs/files/rocm-device-libs-5.1.3-llvm-link.patch
deleted file mode 100644
index 9e6dc38921e2..000000000000
--- a/dev-libs/rocm-device-libs/files/rocm-device-libs-5.1.3-llvm-link.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-https://bugs.gentoo.org/851702#c4
-Adapt to libLLVM.so instead of the seperated libs
-===================================================================
---- ROCm-Device-Libs-rocm-5.0.2.orig/utils/prepare-builtins/CMakeLists.txt
-+++ ROCm-Device-Libs-rocm-5.0.2/utils/prepare-builtins/CMakeLists.txt
-@@ -26,5 +26,5 @@ set_target_properties(prepare-builtins P
- CXX_STANDARD_REQUIRED Yes
- CXX_EXTENSIONS No)
- llvm_update_compile_flags(prepare-builtins)
--llvm_map_components_to_libnames(llvm_libs support core bitreader bitwriter)
--target_link_libraries(prepare-builtins ${llvm_libs})
-+llvm_map_components_to_libnames(llvm_libs support)
-+target_link_libraries(prepare-builtins ${llvm_libs} LLVM)
diff --git a/dev-libs/rocm-device-libs/files/rocm-device-libs-5.1.3-test-bitcode-dir.patch b/dev-libs/rocm-device-libs/files/rocm-device-libs-5.1.3-test-bitcode-dir.patch
deleted file mode 100644
index 9047f8ef90e5..000000000000
--- a/dev-libs/rocm-device-libs/files/rocm-device-libs-5.1.3-test-bitcode-dir.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-lib/amdgcn/bitcode is not among the default bitcode dirs of clang
-Add --rocm-device-lib-path to the clang argument
-Excerpt from https://salsa.debian.org/rocm-team/rocm-device-libs/-/blob/d2014eed680ccce5f9bd61ff4fc28a89682575f3/debian/patches/cmake-amdgcn-bitcode.patch
-==============================================
---- rocm-device-libs.orig/test/constant_folding/RunConstantFoldTest.cmake
-+++ rocm-device-libs/test/constant_folding/RunConstantFoldTest.cmake
-@@ -16,6 +16,7 @@
- -target amdgcn-amd-amdhsa -mcpu=${TEST_CPU}
- -Xclang -finclude-default-header
- --rocm-path=${BINARY_DIR}
-+ --rocm-device-lib-path=${AMDGCN_BITCODES}
- -mllvm -amdgpu-simplify-libcall=0
- -o ${OUTPUT_FILE} ${INPUT_FILE}
- RESULT_VARIABLE CLANG_RESULT
---- rocm-device-libs.orig/test/constant_folding/CMakeLists.txt
-+++ rocm-device-libs/test/constant_folding/CMakeLists.txt
-@@ -30,6 +30,7 @@
- -DFILECHECK_BIN=${FILECHECK_BIN}
- -DOUTPUT_FILE=output.${name}.ll
- -DINPUT_FILE=${CMAKE_CURRENT_SOURCE_DIR}/${name}.cl
-+ -DAMDGCN_BITCODES=${PROJECT_BINARY_DIR}/lib/amdgcn/bitcode
- -DTEST_CPU=gfx900
- -P ${CMAKE_CURRENT_SOURCE_DIR}/RunConstantFoldTest.cmake)
- endfunction()
diff --git a/dev-libs/rocm-device-libs/files/rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch b/dev-libs/rocm-device-libs/files/rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch
deleted file mode 100644
index bf9b2c372600..000000000000
--- a/dev-libs/rocm-device-libs/files/rocm-device-libs-5.4.3-Revert-Update-counters-for-gfx11.patch
+++ /dev/null
@@ -1,216 +0,0 @@
-From 8ce920dddac9846254aaf6261bafd8b22976b04e Mon Sep 17 00:00:00 2001
-From: Jeremy Newton <alexjnewt@hotmail.com>
-Date: Sun, 18 Dec 2022 20:48:21 -0500
-Subject: [PATCH] Revert "Update counters for gfx11"
-
-This reverts commit 85f95b94960c6f7ff4ff0242a399deb4a204fb6a.
----
- doc/OCKL.md | 4 ++--
- ockl/inc/ockl.h | 3 ---
- ockl/src/dm.cl | 15 +++++++++++----
- ockl/src/mtime.cl | 35 ++---------------------------------
- ockl/src/wait.cl | 18 +++++++++---------
- 5 files changed, 24 insertions(+), 51 deletions(-)
-
-diff --git a/doc/OCKL.md b/doc/OCKL.md
-index 07574f6..05c5c49 100644
---- a/doc/OCKL.md
-+++ b/doc/OCKL.md
-@@ -99,8 +99,8 @@ The following table lists the available functions along with a brief description
- | `int __ockl_mul24_i32(int,int);` | Multiply assuming operands fit in 24 bits |
- | `uint __ockl_mul24_u32(uint,uint);` | |
- | - | |
--| `ulong __ockl_cyclectr_u64(void);` | Current value of free running 64-bit clock counter |
--| `ulong __ockl_steadyctr_u64(void);` | Current value of constant speed 64-bit clock counter |
-+| `ulong __ockl_memtime_u64(void);` | Current value of free running 64-bit clock counter |
-+| `ulong __ockl_memrealtime_u64(void);` | Current value of constant speed 64-bit clock counter |
- | - | |
- | `uint __ockl_activelane_u32(void);` | Index of currently lane counting only active lanes in wavefront |
- | - | |
-diff --git a/ockl/inc/ockl.h b/ockl/inc/ockl.h
-index d0b98d4..6300279 100644
---- a/ockl/inc/ockl.h
-+++ b/ockl/inc/ockl.h
-@@ -143,9 +143,6 @@ DECL_OCKL_NULLARY_U32(activelane)
-
- DECL_OCKL_NULLARY_U64(memtime)
- DECL_OCKL_NULLARY_U64(memrealtime)
--DECL_OCKL_NULLARY_U64(cyclectr)
--DECL_OCKL_NULLARY_U64(steadyctr)
--
-
- extern half OCKL_MANGLE_T(wfred_add,f16)(half x);
- extern float OCKL_MANGLE_T(wfred_add,f32)(float x);
-diff --git a/ockl/src/dm.cl b/ockl/src/dm.cl
-index 245b4a1..26373dd 100644
---- a/ockl/src/dm.cl
-+++ b/ockl/src/dm.cl
-@@ -201,6 +201,13 @@ get_heap_ptr(void) {
- }
- }
-
-+// realtime
-+__attribute__((target("s-memrealtime"))) static ulong
-+realtime(void)
-+{
-+ return __builtin_amdgcn_s_memrealtime();
-+}
-+
- // The actual number of blocks in a slab with blocks of kind k
- static uint
- num_blocks(kind_t k)
-@@ -466,7 +473,7 @@ new_slab_wait(__global heap_t *hp, kind_t k)
- uint aid = __ockl_activelane_u32();
- if (aid == 0) {
- ulong expected = AL(&hp->salloc_time[k].value, memory_order_relaxed);
-- ulong now = __ockl_steadyctr_u64();
-+ ulong now = realtime();
- ulong dt = now - expected;
- if (dt < SLAB_TICKS)
- __ockl_rtcwait_u32(SLAB_TICKS - (uint)dt);
-@@ -480,7 +487,7 @@ grow_recordable_wait(__global heap_t *hp, kind_t k)
- uint aid = __ockl_activelane_u32();
- if (aid == 0) {
- ulong expected = AL(&hp->grow_time[k].value, memory_order_relaxed);
-- ulong now = __ockl_steadyctr_u64();
-+ ulong now = realtime();
- ulong dt = now - expected;
- if (dt < GROW_TICKS)
- __ockl_rtcwait_u32(GROW_TICKS - (uint)dt);
-@@ -540,7 +547,7 @@ try_grow_num_recordable_slabs(__global heap_t *hp, kind_t k)
- uint ret = GROW_BUSY;
- if (aid == 0) {
- ulong expected = AL(&hp->grow_time[k].value, memory_order_relaxed);
-- ulong now = __ockl_steadyctr_u64();
-+ ulong now = realtime();
- if (now - expected >= GROW_TICKS &&
- ACE(&hp->grow_time[k].value, &expected, now, memory_order_relaxed))
- ret = GROW_FAILURE;
-@@ -687,7 +694,7 @@ try_allocate_new_slab(__global heap_t *hp, kind_t k)
-
- if (aid == 0) {
- ulong expected = AL(&hp->salloc_time[k].value, memory_order_relaxed);
-- ulong now = __ockl_steadyctr_u64();
-+ ulong now = realtime();
- if (now - expected >= SLAB_TICKS &&
- ACE(&hp->salloc_time[k].value, &expected, now, memory_order_relaxed))
- ret = (__global sdata_t *)0;
-diff --git a/ockl/src/mtime.cl b/ockl/src/mtime.cl
-index 43f4161..543aaa3 100644
---- a/ockl/src/mtime.cl
-+++ b/ockl/src/mtime.cl
-@@ -5,48 +5,17 @@
- * License. See LICENSE.TXT for details.
- *===------------------------------------------------------------------------*/
-
--#include "oclc.h"
- #include "ockl.h"
-
--__attribute__((target("s-memrealtime"))) static ulong
--mem_realtime(void)
--{
-- return __builtin_amdgcn_s_memrealtime();
--}
--
--__attribute__((target("gfx11-insts"))) static ulong
--msg_realtime(void)
--{
-- return __builtin_amdgcn_s_sendmsg_rtnl(0x83);
--}
--
--// Deprecated
- __attribute__((target("s-memtime-inst"))) ulong
- OCKL_MANGLE_U64(memtime)(void)
- {
- return __builtin_amdgcn_s_memtime();
- }
-
--// Deprecated
--ulong
-+__attribute__((target("s-memrealtime"))) ulong
- OCKL_MANGLE_U64(memrealtime)(void)
- {
-- return mem_realtime();
--}
--
--ulong
--OCKL_MANGLE_U64(cyclectr)(void)
--{
-- return __builtin_readcyclecounter();
--}
--
--ulong
--OCKL_MANGLE_U64(steadyctr)(void)
--{
-- if (__oclc_ISA_version >= 11000) {
-- return msg_realtime();
-- } else {
-- return mem_realtime();
-- }
-+ return __builtin_amdgcn_s_memrealtime();
- }
-
-diff --git a/ockl/src/wait.cl b/ockl/src/wait.cl
-index 49b038e..b249599 100644
---- a/ockl/src/wait.cl
-+++ b/ockl/src/wait.cl
-@@ -10,47 +10,47 @@
- #include "ockl.h"
- #include "oclc.h"
-
--void
-+__attribute__((target("s-memrealtime"))) void
- OCKL_MANGLE_T(rtcwait,u32)(uint ticks)
- {
-- ulong now = __ockl_steadyctr_u64();
-+ ulong now = __builtin_amdgcn_s_memrealtime();
- ulong end = now + __builtin_amdgcn_readfirstlane(ticks);
-
- if (__oclc_ISA_version >= 9000) {
- while (end > now + 1625) {
- __builtin_amdgcn_s_sleep(127);
-- now = __ockl_steadyctr_u64();
-+ now = __builtin_amdgcn_s_memrealtime();
- }
-
- while (end > now + 806) {
- __builtin_amdgcn_s_sleep(63);
-- now = __ockl_steadyctr_u64();
-+ now = __builtin_amdgcn_s_memrealtime();
- }
-
- while (end > now + 396) {
- __builtin_amdgcn_s_sleep(31);
-- now = __ockl_steadyctr_u64();
-+ now = __builtin_amdgcn_s_memrealtime();
- }
- }
-
- while (end > now + 192) {
- __builtin_amdgcn_s_sleep(15);
-- now = __ockl_steadyctr_u64();
-+ now = __builtin_amdgcn_s_memrealtime();
- }
-
- while (end > now + 89) {
- __builtin_amdgcn_s_sleep(7);
-- now = __ockl_steadyctr_u64();
-+ now = __builtin_amdgcn_s_memrealtime();
- }
-
- while (end > now + 38) {
- __builtin_amdgcn_s_sleep(3);
-- now = __ockl_steadyctr_u64();
-+ now = __builtin_amdgcn_s_memrealtime();
- }
-
- while (end > now) {
- __builtin_amdgcn_s_sleep(1);
-- now = __ockl_steadyctr_u64();
-+ now = __builtin_amdgcn_s_memrealtime();
- }
- }
-
---
-2.34.1
-
diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-5.1.3-r1.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-5.1.3-r1.ebuild
deleted file mode 100644
index b7ff41518668..000000000000
--- a/dev-libs/rocm-device-libs/rocm-device-libs-5.1.3-r1.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake llvm
-
-LLVM_MAX_SLOT=15
-
-if [[ ${PV} == *9999 ]] ; then
- EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/"
- inherit git-r3
- S="${WORKDIR}/${P}/src"
-else
- SRC_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/ROCm-Device-Libs-rocm-${PV}"
- KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Radeon Open Compute Device Libraries"
-HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-Device-Libs"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="llvm-core/clang:${LLVM_MAX_SLOT}"
-DEPEND="${RDEPEND}"
-
-CMAKE_BUILD_TYPE=Release
-
-PATCHES=( "${FILESDIR}/${PN}-5.1.3-test-bitcode-dir.patch"
- "${FILESDIR}/${PN}-5.1.3-llvm-link.patch" )
-
-src_prepare() {
- sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/OCL.cmake" || die
- sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/Packages.cmake" || die
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- -DLLVM_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")"
- )
- cmake_src_configure
-}
diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-5.3.3.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-5.3.3.ebuild
deleted file mode 100644
index b7ff41518668..000000000000
--- a/dev-libs/rocm-device-libs/rocm-device-libs-5.3.3.ebuild
+++ /dev/null
@@ -1,47 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake llvm
-
-LLVM_MAX_SLOT=15
-
-if [[ ${PV} == *9999 ]] ; then
- EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/"
- inherit git-r3
- S="${WORKDIR}/${P}/src"
-else
- SRC_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/ROCm-Device-Libs-rocm-${PV}"
- KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Radeon Open Compute Device Libraries"
-HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-Device-Libs"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="llvm-core/clang:${LLVM_MAX_SLOT}"
-DEPEND="${RDEPEND}"
-
-CMAKE_BUILD_TYPE=Release
-
-PATCHES=( "${FILESDIR}/${PN}-5.1.3-test-bitcode-dir.patch"
- "${FILESDIR}/${PN}-5.1.3-llvm-link.patch" )
-
-src_prepare() {
- sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/OCL.cmake" || die
- sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/Packages.cmake" || die
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- -DLLVM_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")"
- )
- cmake_src_configure
-}
diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-5.4.3.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-5.4.3.ebuild
deleted file mode 100644
index b6add6d0f153..000000000000
--- a/dev-libs/rocm-device-libs/rocm-device-libs-5.4.3.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake llvm
-
-LLVM_MAX_SLOT=15
-
-if [[ ${PV} == *9999 ]] ; then
- EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/"
- inherit git-r3
- S="${WORKDIR}/${P}/src"
-else
- SRC_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/ROCm-Device-Libs-rocm-${PV}"
- KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Radeon Open Compute Device Libraries"
-HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-Device-Libs"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="llvm-core/clang:${LLVM_MAX_SLOT}"
-DEPEND="${RDEPEND}"
-
-CMAKE_BUILD_TYPE=Release
-
-PATCHES=( "${FILESDIR}/${PN}-5.1.3-test-bitcode-dir.patch"
- "${FILESDIR}/${PN}-5.1.3-llvm-link.patch"
- "${FILESDIR}/${PN}-5.4.3-Revert-Update-counters-for-gfx11.patch" )
-
-src_prepare() {
- sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/OCL.cmake" || die
- sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/Packages.cmake" || die
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- -DLLVM_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")"
- )
- cmake_src_configure
-}
diff --git a/dev-libs/rocm-device-libs/rocm-device-libs-5.5.1.ebuild b/dev-libs/rocm-device-libs/rocm-device-libs-5.5.1.ebuild
deleted file mode 100644
index 223583f417aa..000000000000
--- a/dev-libs/rocm-device-libs/rocm-device-libs-5.5.1.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit cmake llvm
-
-LLVM_MAX_SLOT=16
-
-if [[ ${PV} == *9999 ]] ; then
- EGIT_REPO_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/"
- inherit git-r3
- S="${WORKDIR}/${P}/src"
-else
- SRC_URI="https://github.com/RadeonOpenCompute/ROCm-Device-Libs/archive/rocm-${PV}.tar.gz -> ${P}.tar.gz"
- S="${WORKDIR}/ROCm-Device-Libs-rocm-${PV}"
- KEYWORDS="~amd64"
-fi
-
-DESCRIPTION="Radeon Open Compute Device Libraries"
-HOMEPAGE="https://github.com/RadeonOpenCompute/ROCm-Device-Libs"
-
-LICENSE="MIT"
-SLOT="0/$(ver_cut 1-2)"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-RDEPEND="llvm-core/clang:${LLVM_MAX_SLOT}"
-DEPEND="${RDEPEND}"
-
-CMAKE_BUILD_TYPE=Release
-
-PATCHES=(
- "${FILESDIR}/${PN}-5.4.3-Revert-Update-counters-for-gfx11.patch"
- "${FILESDIR}/${PN}-5.5.1-fix-llvm-link.patch"
- )
-
-src_prepare() {
- sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/OCL.cmake" || die
- sed -e "s:amdgcn/bitcode:lib/amdgcn/bitcode:" -i "${S}/cmake/Packages.cmake" || die
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- -DLLVM_DIR="$(get_llvm_prefix "${LLVM_MAX_SLOT}")"
- )
- cmake_src_configure
-}