commit:     02f2a4c029eb2febefc798840c91e562e6dc9b06
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Fri Oct 17 09:33:56 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Oct 17 14:31:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02f2a4c0

sci-libs/rocBLAS: drop unused patches

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44218
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 .../files/rocBLAS-5.4.2-cpp_lib_filesystem.patch   |  24 ----
 .../rocBLAS-5.7.1-expand-isa-compatibility.patch   | 132 ---------------------
 2 files changed, 156 deletions(-)

diff --git a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch 
b/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch
deleted file mode 100644
index 688fe7eb5bc3..000000000000
--- a/sci-libs/rocBLAS/files/rocBLAS-5.4.2-cpp_lib_filesystem.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-Index: rocBLAS-rocm-5.4.2/clients/common/utility.cpp
-===================================================================
---- rocBLAS-rocm-5.4.2.orig/clients/common/utility.cpp
-+++ rocBLAS-rocm-5.4.2/clients/common/utility.cpp
-@@ -38,6 +38,7 @@
- #ifdef WIN32
- #define strcasecmp(A, B) _stricmp(A, B)
- 
-+#include <version>
- #ifdef __cpp_lib_filesystem
- #include <filesystem>
- namespace fs = std::filesystem;
-Index: rocBLAS-rocm-5.4.2/clients/include/singletons.hpp
-===================================================================
---- rocBLAS-rocm-5.4.2.orig/clients/include/singletons.hpp
-+++ rocBLAS-rocm-5.4.2/clients/include/singletons.hpp
-@@ -21,6 +21,6 @@
-  * ************************************************************************ */
- 
- // global for device memory padding see d_vector.hpp
--
-+#include<cstddef>
- extern size_t g_DVEC_PAD;
- void          d_vector_set_pad_length(size_t pad);

diff --git 
a/sci-libs/rocBLAS/files/rocBLAS-5.7.1-expand-isa-compatibility.patch 
b/sci-libs/rocBLAS/files/rocBLAS-5.7.1-expand-isa-compatibility.patch
deleted file mode 100644
index c5c5d4750393..000000000000
--- a/sci-libs/rocBLAS/files/rocBLAS-5.7.1-expand-isa-compatibility.patch
+++ /dev/null
@@ -1,132 +0,0 @@
-Allow rocBLAS to load the compatible kernels when running on
-architectures compatible with those ISAs.
-
-Based on patch from Cordell Bloor <[email protected]>
-https://salsa.debian.org/rocm-team/rocblas/-/blob/master/debian/patches/0012-expand-isa-compatibility.patch
-
---- a/library/src/handle.cpp
-+++ b/library/src/handle.cpp
-@@ -21,6 +21,7 @@
-  * ************************************************************************ */
- #include "handle.hpp"
- #include <cstdarg>
-+#include <cstring>
- #include <limits>
- #ifdef WIN32
- #include <windows.h>
-@@ -77,6 +78,31 @@ static inline int getActiveArch(int deviceId)
- {
-     hipDeviceProp_t deviceProperties;
-     hipGetDeviceProperties(&deviceProperties, deviceId);
-+    // coerce to compatible arch
-+    switch(deviceProperties.gcnArch)
-+    {
-+    case 902:
-+    case 909:
-+    case 912:
-+        deviceProperties.gcnArch = 900;
-+        std::strcpy(deviceProperties.gcnArchName, "gfx900");
-+        break;
-+    case 1011:
-+    case 1012:
-+    case 1013:
-+        deviceProperties.gcnArch = 1010;
-+        std::strcpy(deviceProperties.gcnArchName, "gfx1010");
-+        break;
-+    case 1031:
-+    case 1032:
-+    case 1033:
-+    case 1034:
-+    case 1035:
-+    case 1036:
-+        deviceProperties.gcnArch = 1030;
-+        std::strcpy(deviceProperties.gcnArchName, "gfx1030");
-+        break;
-+    }
-     return deviceProperties.gcnArch;
- }
- 
---- a/library/src/rocblas_auxiliary.cpp
-+++ b/library/src/rocblas_auxiliary.cpp
-@@ -24,6 +24,7 @@
- #include "logging.hpp"
- #include "rocblas-auxiliary.h"
- #include <cctype>
-+#include <cstring>
- #include <cstdlib>
- #include <memory>
- #include <string>
-@@ -1285,6 +1286,31 @@ std::string rocblas_internal_get_arch_name()
-     hipGetDevice(&deviceId);
-     hipDeviceProp_t deviceProperties;
-     hipGetDeviceProperties(&deviceProperties, deviceId);
-+    // coerce to compatible arch
-+    switch(deviceProperties.gcnArch)
-+    {
-+    case 902:
-+    case 909:
-+    case 912:
-+        deviceProperties.gcnArch = 900;
-+        std::strcpy(deviceProperties.gcnArchName, "gfx900");
-+        break;
-+    case 1011:
-+    case 1012:
-+    case 1013:
-+        deviceProperties.gcnArch = 1010;
-+        std::strcpy(deviceProperties.gcnArchName, "gfx1010");
-+        break;
-+    case 1031:
-+    case 1032:
-+    case 1033:
-+    case 1034:
-+    case 1035:
-+    case 1036:
-+        deviceProperties.gcnArch = 1030;
-+        std::strcpy(deviceProperties.gcnArchName, "gfx1030");
-+        break;
-+    }
-     return ArchName<hipDeviceProp_t>{}(deviceProperties);
- }
- 
---- a/library/src/tensile_host.cpp
-+++ b/library/src/tensile_host.cpp
-@@ -45,6 +45,7 @@ extern "C" void rocblas_shutdown();
- #include <Tensile/hip/HipUtils.hpp>
- #include <atomic>
- #include <complex>
-+#include <cstring>
- #include <exception>
- #include <future>
- #include <iomanip>
-@@ -837,6 +838,31 @@ namespace
- 
-             hipDeviceProp_t prop;
-             HIP_CHECK_EXC(hipGetDeviceProperties(&prop, deviceId));
-+            // coerce to compatible arch
-+            switch(prop.gcnArch)
-+            {
-+            case 902:
-+            case 909:
-+            case 912:
-+                prop.gcnArch = 900;
-+                std::strcpy(prop.gcnArchName, "gfx900");
-+                break;
-+            case 1011:
-+            case 1012:
-+            case 1013:
-+                prop.gcnArch = 1010;
-+                std::strcpy(prop.gcnArchName, "gfx1010");
-+                break;
-+            case 1031:
-+            case 1032:
-+            case 1033:
-+            case 1034:
-+            case 1035:
-+            case 1036:
-+                prop.gcnArch = 1030;
-+                std::strcpy(prop.gcnArchName, "gfx1030");
-+                break;
-+            }
- 
-             m_deviceProp = std::make_shared<hipDeviceProp_t>(prop);
- 

Reply via email to