summaryrefslogtreecommitdiff
path: root/sci-libs/rocPRIM/files/rocPRIM-6.4.1-expand-isa-compatibility.patch
blob: 455dd55061c5a5c5bab69c21f36bb79ed82f86b0 (plain)
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
This patch allows to HSA_OVERRIDE_GFX_VERSION environment variable (library just crashes otherwise) 
--- a/rocprim/include/rocprim/device/config_types.hpp
+++ b/rocprim/include/rocprim/device/config_types.hpp
@@ -207,26 +207,26 @@ constexpr bool prefix_equals(const char* lhs, const char* rhs, std::size_t n)
 constexpr target_arch get_target_arch_from_name(const char* const arch_name, const std::size_t n)
 {
     constexpr const char* target_names[]         = {"gfx803",
-                                                    "gfx900",
+                                                    "gfx900", "gfx902", "gfx909", "gfx912",
                                                     "gfx906",
                                                     "gfx908",
                                                     "gfx90a",
                                                     "gfx942",
-                                                    "gfx1030",
-                                                    "gfx1100",
-                                                    "gfx1102",
+                                                    "gfx1030", "gfx1031", "gfx1032", "gfx1033", "gfx1034", "gfx1035", "gfx1036",
+                                                    "gfx1100", "gfx1101",
+                                                    "gfx1102", "gfx1103", "gfx1150", "gfx1151", "gfx1152", "gfx1153",
                                                     "gfx1200",
                                                     "gfx1201"};
     constexpr target_arch target_architectures[] = {
         target_arch::gfx803,
-        target_arch::gfx900,
+        target_arch::gfx900, target_arch::gfx900, target_arch::gfx900, target_arch::gfx900,
         target_arch::gfx906,
         target_arch::gfx908,
         target_arch::gfx90a,
         target_arch::gfx942,
-        target_arch::gfx1030,
-        target_arch::gfx1100,
-        target_arch::gfx1102,
+        target_arch::gfx1030, target_arch::gfx1030, target_arch::gfx1030, target_arch::gfx1030, target_arch::gfx1030, target_arch::gfx1030, target_arch::gfx1030,
+        target_arch::gfx1100, target_arch::gfx1100,
+        target_arch::gfx1102, target_arch::gfx1102, target_arch::gfx1102, target_arch::gfx1102, target_arch::gfx1102, target_arch::gfx1102,
         target_arch::gfx1200,
         target_arch::gfx1201,
     };