File: 0002-default-thread-load-store-cache-modifiers-to-off.patch

package info (click to toggle)
hipcub 6.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,528 kB
  • sloc: cpp: 56,703; python: 564; sh: 365; makefile: 118; xml: 26
file content (41 lines) | stat: -rw-r--r-- 1,596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From: Cordell Bloor <cgmb@debian.org>
Date: Fri, 7 Nov 2025 11:40:56 -0700
Subject: default thread load-store cache modifiers to off

The assembly code used for this is invalid on RDNA 3, but it wasn't
noticed with older compilers. The broken code was entirely removed
by ROCm 7.1, so this patch can be dropped after updating hipcub
to that release.

Forwarded: not-needed
---
 hipcub/include/hipcub/thread/thread_load.hpp  | 2 +-
 hipcub/include/hipcub/thread/thread_store.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hipcub/include/hipcub/thread/thread_load.hpp b/hipcub/include/hipcub/thread/thread_load.hpp
index 89b4b8b..f50239e 100644
--- a/hipcub/include/hipcub/thread/thread_load.hpp
+++ b/hipcub/include/hipcub/thread/thread_load.hpp
@@ -33,7 +33,7 @@
 #ifdef __HIP_PLATFORM_AMD__
 
     #ifndef HIPCUB_THREAD_LOAD_USE_CACHE_MODIFIERS
-        #define HIPCUB_THREAD_LOAD_USE_CACHE_MODIFIERS 1
+        #define HIPCUB_THREAD_LOAD_USE_CACHE_MODIFIERS 0
     #endif
 
     #include "../backend/rocprim/thread/thread_load.hpp"
diff --git a/hipcub/include/hipcub/thread/thread_store.hpp b/hipcub/include/hipcub/thread/thread_store.hpp
index df61aaa..9af0535 100644
--- a/hipcub/include/hipcub/thread/thread_store.hpp
+++ b/hipcub/include/hipcub/thread/thread_store.hpp
@@ -33,7 +33,7 @@
 #ifdef __HIP_PLATFORM_AMD__
 
     #ifndef HIPCUB_THREAD_STORE_USE_CACHE_MODIFIERS
-        #define HIPCUB_THREAD_STORE_USE_CACHE_MODIFIERS 1
+        #define HIPCUB_THREAD_STORE_USE_CACHE_MODIFIERS 0
     #endif
 
     #include "../backend/rocprim/thread/thread_store.hpp"