public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocblas] rawhide: Update to 10.2
@ 2026-11-28 13:44 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-11-28 13:44 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rocblas
Branch : rawhide
Commit : dbcdbe536d94a1d44174eae86d8b3e025656705a
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-11-28T05:43:53-08:00
Stats : +878/-2867 in 27 file(s)
URL : https://src.fedoraproject.org/rpms/rocblas/c/dbcdbe536d94a1d44174eae86d8b3e025656705a?branch=rawhide
Log:
Update to 10.2
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
diff --git a/.gitignore b/.gitignore
index 2d431dc..9bbbfae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,3 +23,5 @@
/tensile-10.0.0.tar.gz
/rocblas-10.1.0.tar.gz
/tensile-10.1.0.tar.gz
+/rocblas-10.2.0.tar.gz
+/tensile-10.2.0.tar.gz
diff --git a/0001-fixup-install-of-tensile-output.patch b/0001-fixup-install-of-tensile-output.patch
deleted file mode 100644
index 2266e71..0000000
--- a/0001-fixup-install-of-tensile-output.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 87f3c0b3ebab78aa6d126633683720031d886313 Mon Sep 17 00:00:00 2001
-From: Tom Rix <trix@redhat.com>
-Date: Sat, 13 Jan 2024 14:36:01 -0500
-Subject: [PATCH] fixup install of tensile output
-
----
- library/src/CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/library/src/CMakeLists.txt b/library/src/CMakeLists.txt
-index f4bdfb5f9742..316779134314 100644
---- a/library/src/CMakeLists.txt
-+++ b/library/src/CMakeLists.txt
-@@ -823,7 +823,7 @@ if( BUILD_WITH_TENSILE )
- if (WIN32)
- set( ROCBLAS_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}/bin/rocblas" CACHE PATH "path to tensile library" )
- else()
-- set( ROCBLAS_TENSILE_LIBRARY_DIR "\${CPACK_PACKAGING_INSTALL_PREFIX}${CMAKE_INSTALL_LIBDIR}/rocblas" CACHE PATH "path to tensile library" )
-+ set( ROCBLAS_TENSILE_LIBRARY_DIR "${CMAKE_INSTALL_LIBDIR}/rocblas" CACHE PATH "path to tensile library" )
- endif()
- # For ASAN package, Tensile library files(which are not shared libraries) are not required
- if( NOT ENABLE_ASAN_PACKAGING )
---
-2.51.0
-
diff --git a/0001-improve-the-warning-for-asm-caps-mismatches.patch b/0001-improve-the-warning-for-asm-caps-mismatches.patch
deleted file mode 100644
index 7e1cf2d..0000000
--- a/0001-improve-the-warning-for-asm-caps-mismatches.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 393571163851ee7dd5508007dbd887cde2141c5c Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Sun, 8 Mar 2026 10:48:50 -0700
-Subject: [PATCH 1/6] improve the warning for asm caps mismatches
-
-This change prints out the different keys/value pairt when there
-is a difference between the derrived and cached asm tables.
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- shared/tensile/Tensile/Common.py | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/shared/tensile/Tensile/Common.py b/shared/tensile/Tensile/Common.py
-index 55954296e907..a4db814f542f 100644
---- a/shared/tensile/Tensile/Common.py
-+++ b/shared/tensile/Tensile/Common.py
-@@ -2011,6 +2011,14 @@ def locateExe( defaultPath, exeName ): # /opt/rocm/bin, hip-clang
- return exePath
- return None
-
-+def PrintDiff(d1, d2):
-+ keys = set(d1.keys() | d2.keys())
-+ for key in keys:
-+ v1 = d1.get(key)
-+ v2 = d2.get(key)
-+ if v1 != v2:
-+ printWarning(f"{key}: {v1} != {v2}")
-+
- def GetAsmCaps(isaVersion: IsaVersion, hipVersion: SemanticVersion, cachedAsmCaps: Dict[IsaVersion, dict]) -> Dict[IsaVersion, dict]:
- """ Determine assembler capabilities by testing short instructions sequences """
- if globalParameters["AssemblerPath"] is not None:
-@@ -2133,6 +2141,7 @@ def GetAsmCaps(isaVersion: IsaVersion, hipVersion: SemanticVersion, cachedAsmCap
- exitFlag = True
- if exitFlag:
- printWarning("Cached asm caps differ from derived asm caps for {}".format(isaVersion))
-+ PrintDiff(derivedAsmCaps, cachedAsmCaps[isaVersion])
- return derivedAsmCaps
- else:
- printWarning("Assembler not present, asm caps loaded from cache are unverified")
---
-2.53.0
-
diff --git a/0001-tensile-add-cmake-arches.patch b/0001-tensile-add-cmake-arches.patch
deleted file mode 100644
index ffe5265..0000000
--- a/0001-tensile-add-cmake-arches.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 97d064fb6acae49c3543b3eb88c211bde4c82401 Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Thu, 30 Oct 2025 07:59:11 -0700
-Subject: [PATCH] tensile add cmake arches
-
----
- Tensile/Source/cmake/TensileSupportedArchitectures.cmake | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/Tensile/Source/cmake/TensileSupportedArchitectures.cmake b/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-index e8a28d3bfeda..2147db4d5a93 100644
---- a/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-+++ b/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-@@ -51,6 +51,8 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx1103"
- "gfx1150"
- "gfx1151"
-+ "gfx1152"
-+ "gfx1153"
- "gfx1200"
- "gfx1201")
-
---
-2.52.0
-
diff --git a/0001-tensile-add-gfx1170.patch b/0001-tensile-add-gfx1170.patch
deleted file mode 100644
index 9055ac2..0000000
--- a/0001-tensile-add-gfx1170.patch
+++ /dev/null
@@ -1,167 +0,0 @@
-From dafe373398717cef82a1b0b5e414674029941291 Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Mon, 5 Oct 2026 16:20:55 -0700
-Subject: [PATCH] tensile add gfx1170
-
----
- shared/tensile/Tensile/AsmCaps.py | 44 +++++++++++++++++++
- shared/tensile/Tensile/Common.py | 6 +--
- .../cmake/TensileSupportedArchitectures.cmake | 1 +
- .../Source/lib/include/Tensile/AMDGPU.hpp | 7 +++
- .../include/Tensile/PlaceholderLibrary.hpp | 3 ++
- 5 files changed, 58 insertions(+), 3 deletions(-)
-
-diff --git a/shared/tensile/Tensile/AsmCaps.py b/shared/tensile/Tensile/AsmCaps.py
-index 11ef6ca942bd..8e10efd414ac 100644
---- a/shared/tensile/Tensile/AsmCaps.py
-+++ b/shared/tensile/Tensile/AsmCaps.py
-@@ -1445,6 +1445,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (11, 7, 0): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': True,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (12, 0, 0): {'HasAddLshl': True,
- 'HasAtomicAdd': False,
- 'HasDirectToLdsDest': False,
-diff --git a/shared/tensile/Tensile/Common.py b/shared/tensile/Tensile/Common.py
-index fac32931fee0..d812e3e70fd5 100644
---- a/shared/tensile/Tensile/Common.py
-+++ b/shared/tensile/Tensile/Common.py
-@@ -253,7 +253,7 @@ globalParameters["SupportedISA"] = [(8,0,3),
- (9,4,2), (9,4,-1), (9,5,0),
- (10,1,0), (10,1,1), (10,1,2), (10,1,-1), (10,3,0), (10,3,1), (10,3,2), (10,3,3), (10,3,4), (10,3,5), (10,3,6), (10,3,-1),
- (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,0,-1),
-- (11,5,0), (11,5,1), (11,5,2), (11,5,3),
-+ (11,5,0), (11,5,1), (11,5,2), (11,5,3), (11,7,0),
- (12,0,0), (12,0,1), (12,5,0), (12,0,-1)] # assembly kernels writer supports these architectures
-
- globalParameters["KeepBuildTmp"] = True # Do not remove build artifacts during the build process or build_tmp after build completes
-@@ -329,7 +329,7 @@ architectureMap = {
- 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14', 'gfx10-1-generic':'gfx10-1-generic',
- 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1033':'van gogh', 'gfx1034':'navi24', 'gfx1035':'rembrandt', 'gfx1036':'raphael', 'gfx10-3-generic':'gfx10-3-generic',
- 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103', 'gfx11-generic':'gfx11-generic',
-- 'gfx1150':'strixpoint', 'gfx1151':'strixhalo', 'gfx1152':'gfx1152', 'gfx1153':'gfx1153',
-+ 'gfx1150':'strixpoint', 'gfx1151':'strixhalo', 'gfx1152':'gfx1152', 'gfx1153':'gfx1153', 'gfx1170':'gfx1170',
- 'gfx1200':'gfx1200',
- 'gfx1201':'gfx1201', 'gfx12-generic':'gfx12-generic',
- 'gfx1250':'gfx1250'
-@@ -2519,7 +2519,7 @@ def assignGlobalParameters( config, capabilitiesCache: Optional[dict] = None, *,
- if os.name == "nt":
- globalParameters["CurrentISA"] = (9,0,6)
- printWarning("Failed to detect ISA so forcing (gfx906) on windows")
-- isasWithDisabledHWMonitor = ((9,0,-1), (9,4,2), (9,4,-1), (9,5,0), (10,1,-1), (10,3,-1), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (11,0,-1), (12,0,0), (12,0,1), (12,0,-1))
-+ isasWithDisabledHWMonitor = ((9,0,-1), (9,4,2), (9,4,-1), (9,5,0), (10,1,-1), (10,3,-1), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (11,7,0), (11,0,-1), (12,0,0), (12,0,1), (12,0,-1))
- if globalParameters["CurrentISA"] in isasWithDisabledHWMonitor:
- isaString = ', '.join(map(gfxName, isasWithDisabledHWMonitor))
- printWarning(f"HardwareMonitor currently disabled for {isaString}")
-diff --git a/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake b/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-index 2139617551c4..71782fe5aecb 100644
---- a/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-+++ b/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-@@ -60,6 +60,7 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx1151"
- "gfx1152"
- "gfx1153"
-+ "gfx1170"
- "gfx11-generic"
- "gfx1200"
- "gfx1201"
-diff --git a/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp b/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-index 4b71db91f814..0bdbac8726d5 100644
---- a/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-+++ b/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-@@ -81,6 +81,7 @@ namespace Tensile
- gfx1151 = 1151,
- gfx1152 = 1152,
- gfx1153 = 1153,
-+ gfx1170 = 1170,
- gfx1200 = 1200,
- gfx1201 = 1201,
- gfx1250 = 1250,
-@@ -148,6 +149,8 @@ namespace Tensile
- return "gfx1152";
- case AMDGPU::Processor::gfx1153:
- return "gfx1153";
-+ case AMDGPU::Processor::gfx1170:
-+ return "gfx1170";
- case AMDGPU::Processor::gfx1200:
- return "gfx1200";
- case AMDGPU::Processor::gfx1201:
-@@ -276,6 +279,10 @@ namespace Tensile
- {
- return AMDGPU::Processor::gfx1153;
- }
-+ else if(deviceString.find("gfx11700") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx1170;
-+ }
- else if(deviceString.find("gfx1200") != std::string::npos)
- {
- return AMDGPU::Processor::gfx1200;
-diff --git a/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp b/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-index 421b21c5f7dd..9e082e3fa9a3 100644
---- a/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-+++ b/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-@@ -65,6 +65,7 @@ namespace Tensile
- gfx1151,
- gfx1152,
- gfx1153,
-+ gfx1170,
- gfx1200,
- gfx1201,
- gfx1250,
-@@ -136,6 +137,8 @@ namespace Tensile
- return "TensileLibrary_*_gfx1152";
- case LazyLoadingInit::gfx1153:
- return "TensileLibrary_*_gfx1153";
-+ case LazyLoadingInit::gfx1170:
-+ return "TensileLibrary_*_gfx1170";
- case LazyLoadingInit::gfx1200:
- return "TensileLibrary_*_gfx1200";
- case LazyLoadingInit::gfx1201:
---
-2.55.0
-
diff --git a/0001-tensile-fedora-gpus.patch b/0001-tensile-fedora-gpus.patch
deleted file mode 100644
index 9d55d0f..0000000
--- a/0001-tensile-fedora-gpus.patch
+++ /dev/null
@@ -1,340 +0,0 @@
-From a31c5dca12d81f81f3aaf9629e8c6ea0660fd06d Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Thu, 30 Oct 2025 06:59:47 -0700
-Subject: [PATCH] tensile fedora gpus
-
----
- Tensile/AsmCaps.py | 176 ++++++++++++++++++
- Tensile/Common.py | 8 +-
- Tensile/Source/lib/include/Tensile/AMDGPU.hpp | 25 ++-
- .../include/Tensile/PlaceholderLibrary.hpp | 17 +-
- 4 files changed, 216 insertions(+), 10 deletions(-)
-
-diff --git a/Tensile/AsmCaps.py b/Tensile/AsmCaps.py
-index cacc1848b7e0..41330270c618 100644
---- a/Tensile/AsmCaps.py
-+++ b/Tensile/AsmCaps.py
-@@ -683,6 +683,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'VOP3v_dot4_i32_i8': False,
- 'v_dot2_f32_f16': True,
- 'v_dot2c_f32_f16': True,
-+ (10, 3, 5): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': True,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- 'v_dot4_i32_i8': False,
- 'v_dot4c_i32_i8': False,
- 'v_fma_f16': True,
-@@ -859,6 +903,94 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'VOP3v_dot4_i32_i8': False,
- 'v_dot2_f32_f16': True,
- 'v_dot2c_f32_f16': True,
-+ (11, 0, 3): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': True,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
-+ (11, 5, 0): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': True,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- 'v_dot4_i32_i8': False,
- 'v_dot4c_i32_i8': False,
- 'v_fma_f16': True,
-@@ -947,6 +1079,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'VOP3v_dot4_i32_i8': False,
- 'v_dot2_f32_f16': True,
- 'v_dot2c_f32_f16': False,
-+ (11, 5, 2): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': True,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- 'v_dot4_i32_i8': False,
- 'v_dot4c_i32_i8': False,
- 'v_fma_f16': True,
-diff --git a/Tensile/Common.py b/Tensile/Common.py
-index 9370c3ef09d4..8b6b43111877 100644
---- a/Tensile/Common.py
-+++ b/Tensile/Common.py
-@@ -248,9 +248,9 @@ globalParameters["MaxFileName"] = 64 # If a file name would be long
- globalParameters["SupportedISA"] = [(8,0,3),
- (9,0,0), (9,0,6), (9,0,8), (9,0,10),
- (9,4,2), (9,5,0),
-- (10,1,0), (10,1,1), (10,1,2), (10,3,0), (10,3,1), (10,3,2),
-+ (10,1,0), (10,1,1), (10,1,2), (10,3,0), (10,3,1), (10,3,2), (10,3,5),
- (11,0,0), (11,0,1), (11,0,2), (11,0,3),
-- (11,5,0), (11,5,1),
-+ (11,5,0), (11,5,1), (11,5,2),
- (12,0,0), (12,0,1)] # assembly kernels writer supports these architectures
-
- globalParameters["KeepBuildTmp"] = True # Do not remove build artifacts during the build process or build_tmp after build completes
-@@ -326,7 +326,7 @@ architectureMap = {
- 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14',
- 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1034':'navi24', 'gfx1035':'rembrandt',
- 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103',
-- 'gfx1150':'strixpoint', 'gfx1151':'strixhalo',
-+ 'gfx1150':'strixpoint', 'gfx1151':'strixhalo','gfx1152':'gfx1152',
- 'gfx1200':'gfx1200',
- 'gfx1201':'gfx1201'
- }
-@@ -2466,7 +2466,7 @@ def assignGlobalParameters( config, capabilitiesCache: Optional[dict] = None ):
- if os.name == "nt":
- globalParameters["CurrentISA"] = (9,0,6)
- printWarning("Failed to detect ISA so forcing (gfx906) on windows")
-- isasWithDisabledHWMonitor = ((9,4,2), (9,5,0), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (12,0,0), (12,0,1))
-+ isasWithDisabledHWMonitor = ((9,4,2), (9,5,0), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (12,0,0), (12,0,1))
- if globalParameters["CurrentISA"] in isasWithDisabledHWMonitor:
- isaString = ', '.join(map(gfxName, isasWithDisabledHWMonitor))
- printWarning(f"HardwareMonitor currently disabled for {isaString}")
-diff --git a/Tensile/Source/lib/include/Tensile/AMDGPU.hpp b/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-index 317250db16c4..1dc9b82d8c3a 100644
---- a/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-+++ b/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-@@ -76,6 +76,7 @@ namespace Tensile
- gfx1103 = 1103,
- gfx1150 = 1150,
- gfx1151 = 1151,
-+ gfx1152 = 1152,
- gfx1200 = 1200,
- gfx1201 = 1201
- };
-@@ -126,13 +127,15 @@ namespace Tensile
- return "gfx1150";
- case AMDGPU::Processor::gfx1151:
- return "gfx1151";
-+ case AMDGPU::Processor::gfx1152:
-+ return "gfx1152";
- case AMDGPU::Processor::gfx1200:
- return "gfx1200";
- case AMDGPU::Processor::gfx1201:
- return "gfx1201";
-- }
-- return "";
-- }
-+ }
-+ return "";
-+ }
-
- AMDGPU::Processor toProcessorId(std::string const& deviceString)
- {
-@@ -212,6 +215,22 @@ namespace Tensile
- {
- return AMDGPU::Processor::gfx1201;
- }
-+ else if(deviceString.find("gfx1103") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx1103;
-+ }
-+ else if(deviceString.find("gfx1150") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx1150;
-+ }
-+ else if(deviceString.find("gfx1151") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx1151;
-+ }
-+ else if(deviceString.find("gfx1152") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx1152;
-+ }
- else
- {
- return static_cast<AMDGPU::Processor>(0);
-diff --git a/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp b/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-index a21e584d291a..cb1c085258c9 100644
---- a/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-+++ b/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-@@ -57,6 +57,10 @@ namespace Tensile
- gfx1100,
- gfx1101,
- gfx1102,
-+ gfx1103,
-+ gfx1151,
-+ gfx1150,
-+ gfx1152,
- gfx1103,
- gfx1150,
- gfx1151,
-@@ -118,10 +122,17 @@ namespace Tensile
- return "TensileLibrary_*_gfx1200";
- case LazyLoadingInit::gfx1201:
- return "TensileLibrary_*_gfx1201";
-- case LazyLoadingInit::None:
-- return "";
-+ case LazyLoadingInit::gfx1103:
-+ return "TensileLibrary_*_gfx1103";
-+ case LazyLoadingInit::gfx1150:
-+ return "TensileLibrary_*_gfx1150";
-+ case LazyLoadingInit::gfx1151:
-+ return "TensileLibrary_*_gfx1151";
-+ case LazyLoadingInit::gfx1152:
-+ return "TensileLibrary_*_gfx1152";
-+ case LazyLoadingInit::None:
-+ return "";
- }
-- return "";
- }
-
- template <typename MyProblem, typename MySolution = typename MyProblem::Solution>
---
-2.52.0
-
diff --git a/0001-tensile-gfx1036.patch b/0001-tensile-gfx1036.patch
deleted file mode 100644
index b0a7f15..0000000
--- a/0001-tensile-gfx1036.patch
+++ /dev/null
@@ -1,242 +0,0 @@
-From 0bd27b4c7bbd913967583158983a9b6077c956f5 Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Fri, 7 Nov 2025 10:07:52 -0800
-Subject: [PATCH] tensile gfx1036
-
----
- Tensile/AsmCaps.py | 132 ++++++++++++------
- Tensile/Common.py | 4 +-
- .../cmake/TensileSupportedArchitectures.cmake | 1 +
- Tensile/Source/lib/include/Tensile/AMDGPU.hpp | 3 +
- .../include/Tensile/PlaceholderLibrary.hpp | 3 +
- 5 files changed, 97 insertions(+), 46 deletions(-)
-
-diff --git a/Tensile/AsmCaps.py b/Tensile/AsmCaps.py
-index c4bdc4775300..ea9d7567b58e 100644
---- a/Tensile/AsmCaps.py
-+++ b/Tensile/AsmCaps.py
-@@ -653,6 +653,94 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (10, 3, 5): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': True,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
-+ (10, 3, 6): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': True,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (11, 0, 0): {'HasAddLshl': True,
- 'HasAtomicAdd': True,
- 'HasDirectToLdsDest': False,
-@@ -683,50 +771,6 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'VOP3v_dot4_i32_i8': False,
- 'v_dot2_f32_f16': True,
- 'v_dot2c_f32_f16': True,
-- (10, 3, 5): {'HasAddLshl': True,
-- 'HasAtomicAdd': False,
-- 'HasDirectToLdsDest': False,
-- 'HasDirectToLdsNoDest': True,
-- 'HasExplicitCO': True,
-- 'HasExplicitNC': True,
-- 'HasGLCModifier': True,
-- 'HasNTModifier': False,
-- 'HasLshlOr': True,
-- 'HasMFMA': False,
-- 'HasMFMA_b8': False,
-- 'HasMFMA_bf16_1k': False,
-- 'HasMFMA_bf16_original': False,
-- 'HasMFMA_constSrc': False,
-- 'HasMFMA_f64': False,
-- 'HasMFMA_f8': False,
-- 'HasMFMA_i8_908': False,
-- 'HasMFMA_i8_940': False,
-- 'HasMFMA_vgpr': False,
-- 'HasMFMA_xf32': False,
-- 'HasSMulHi': True,
-- 'HasWMMA': False,
-- 'KernargPreloading': False,
-- 'MaxLgkmcnt': 15,
-- 'MaxVmcnt': 63,
-- 'SupportedISA': True,
-- 'SupportedSource': True,
-- 'VOP3v_dot4_i32_i8': True,
-- 'v_dot2_f32_f16': True,
-- 'v_dot2c_f32_f16': True,
-- 'v_dot4_i32_i8': False,
-- 'v_dot4c_i32_i8': True,
-- 'v_fma_f16': True,
-- 'v_fma_f32': True,
-- 'v_fma_f64': True,
-- 'v_fma_mix_f32': True,
-- 'v_fmac_f16': False,
-- 'v_fmac_f32': True,
-- 'v_mac_f16': False,
-- 'v_mac_f32': False,
-- 'v_mad_mix_f32': False,
-- 'v_mov_b64': False,
-- 'v_pk_fma_f16': True,
-- 'v_pk_fmac_f16': False},
- 'v_dot4_i32_i8': False,
- 'v_dot4c_i32_i8': False,
- 'v_fma_f16': True,
-diff --git a/Tensile/Common.py b/Tensile/Common.py
-index 140d4dbe58c2..a7d2ab5cd760 100644
---- a/Tensile/Common.py
-+++ b/Tensile/Common.py
-@@ -248,7 +248,7 @@ globalParameters["MaxFileName"] = 64 # If a file name would be long
- globalParameters["SupportedISA"] = [(8,0,3),
- (9,0,0), (9,0,6), (9,0,8), (9,0,10),
- (9,4,2), (9,5,0),
-- (10,1,0), (10,1,1), (10,1,2), (10,3,0), (10,3,1), (10,3,2), (10,3,5),
-+ (10,1,0), (10,1,1), (10,1,2), (10,3,0), (10,3,1), (10,3,2), (10,3,5), (10,3,6),
- (11,0,0), (11,0,1), (11,0,2), (11,0,3),
- (11,5,0), (11,5,1), (11,5,2), (11,5,3),
- (12,0,0), (12,0,1)] # assembly kernels writer supports these architectures
-@@ -324,7 +324,7 @@ architectureMap = {
- 'gfx942':'aquavanjaram942', 'gfx942:xnack+':'aquavanjaram942', 'gfx942:xnack-':'aquavanjaram942',
- 'gfx950':'gfx950', 'gfx950:xnack+':'gfx950', 'gfx950:xnack-':'gfx950',
- 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14',
-- 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1034':'navi24', 'gfx1035':'rembrandt',
-+ 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1034':'navi24', 'gfx1035':'rembrandt', 'gfx1036':'gfx1036',
- 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103',
- 'gfx1150':'strixpoint', 'gfx1151':'strixhalo','gfx1152':'gfx1152','gfx1153':'gfx1153',
- 'gfx1200':'gfx1200',
-diff --git a/Tensile/Source/cmake/TensileSupportedArchitectures.cmake b/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-index 2147db4d5a93..c8b8b1eda14d 100644
---- a/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-+++ b/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-@@ -45,6 +45,7 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx1032"
- "gfx1034"
- "gfx1035"
-+ "gfx1036"
- "gfx1100"
- "gfx1101"
- "gfx1102"
-diff --git a/Tensile/Source/lib/include/Tensile/AMDGPU.hpp b/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-index 7e8b0ac545f1..9c8c60b6fcbe 100644
---- a/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-+++ b/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-@@ -70,6 +70,7 @@ namespace Tensile
- gfx1032 = 1032,
- gfx1034 = 1034,
- gfx1035 = 1035,
-+ gfx1036 = 1036,
- gfx1100 = 1100,
- gfx1101 = 1101,
- gfx1102 = 1102,
-@@ -116,6 +117,8 @@ namespace Tensile
- return "gfx1034";
- case AMDGPU::Processor::gfx1035:
- return "gfx1035";
-+ case AMDGPU::Processor::gfx1036:
-+ return "gfx1036";
- case AMDGPU::Processor::gfx1100:
- return "gfx1100";
- case AMDGPU::Processor::gfx1101:
-diff --git a/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp b/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-index 77c9ced2cc35..852c41f60e8d 100644
---- a/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-+++ b/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-@@ -54,6 +54,7 @@ namespace Tensile
- gfx1032,
- gfx1034,
- gfx1035,
-+ gfx1036,
- gfx1100,
- gfx1101,
- gfx1102,
-@@ -104,6 +105,8 @@ namespace Tensile
- return "TensileLibrary_*_gfx1034";
- case LazyLoadingInit::gfx1035:
- return "TensileLibrary_*_gfx1035";
-+ case LazyLoadingInit::gfx1036:
-+ return "TensileLibrary_*_gfx1036";
- case LazyLoadingInit::gfx1100:
- return "TensileLibrary_*_gfx1100";
- case LazyLoadingInit::gfx1101:
---
-2.52.0
-
diff --git a/0001-tensile-gfx1153.patch b/0001-tensile-gfx1153.patch
deleted file mode 100644
index acf9bf6..0000000
--- a/0001-tensile-gfx1153.patch
+++ /dev/null
@@ -1,165 +0,0 @@
-From 1c66a051e819a40e9bbe6bdd8d54124baf001f00 Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Thu, 30 Oct 2025 07:15:18 -0700
-Subject: [PATCH] tensile gfx1153
-
----
- Tensile/AsmCaps.py | 44 +++++++++++++++++++
- Tensile/Common.py | 6 +--
- Tensile/Source/lib/include/Tensile/AMDGPU.hpp | 7 +++
- .../include/Tensile/PlaceholderLibrary.hpp | 12 ++---
- 4 files changed, 57 insertions(+), 12 deletions(-)
-
-diff --git a/Tensile/AsmCaps.py b/Tensile/AsmCaps.py
-index 41330270c618..c4bdc4775300 100644
---- a/Tensile/AsmCaps.py
-+++ b/Tensile/AsmCaps.py
-@@ -1167,6 +1167,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'VOP3v_dot4_i32_i8': False,
- 'v_dot2_f32_f16': True,
- 'v_dot2c_f32_f16': False,
-+ (11, 5, 3): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': True,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- 'v_dot4_i32_i8': False,
- 'v_dot4c_i32_i8': False,
- 'v_fma_f16': True,
-diff --git a/Tensile/Common.py b/Tensile/Common.py
-index 8b6b43111877..a4a8bb524da0 100644
---- a/Tensile/Common.py
-+++ b/Tensile/Common.py
-@@ -250,7 +250,7 @@ globalParameters["SupportedISA"] = [(8,0,3),
- (9,4,2), (9,5,0),
- (10,1,0), (10,1,1), (10,1,2), (10,3,0), (10,3,1), (10,3,2), (10,3,5),
- (11,0,0), (11,0,1), (11,0,2), (11,0,3),
-- (11,5,0), (11,5,1), (11,5,2),
-+ (11,5,0), (11,5,1), (11,5,2), (11,5,3),
- (12,0,0), (12,0,1)] # assembly kernels writer supports these architectures
-
- globalParameters["KeepBuildTmp"] = True # Do not remove build artifacts during the build process or build_tmp after build completes
-@@ -326,7 +326,7 @@ architectureMap = {
- 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14',
- 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1034':'navi24', 'gfx1035':'rembrandt',
- 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103',
-- 'gfx1150':'strixpoint', 'gfx1151':'strixhalo','gfx1152':'gfx1152',
-+ 'gfx1150':'strixpoint', 'gfx1151':'strixhalo','gfx1152':'gfx1152','gfx1153':'gfx1153',
- 'gfx1200':'gfx1200',
- 'gfx1201':'gfx1201'
- }
-@@ -2466,7 +2466,7 @@ def assignGlobalParameters( config, capabilitiesCache: Optional[dict] = None ):
- if os.name == "nt":
- globalParameters["CurrentISA"] = (9,0,6)
- printWarning("Failed to detect ISA so forcing (gfx906) on windows")
-- isasWithDisabledHWMonitor = ((9,4,2), (9,5,0), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (12,0,0), (12,0,1))
-+ isasWithDisabledHWMonitor = ((9,4,2), (9,5,0), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (12,0,0), (12,0,1))
- if globalParameters["CurrentISA"] in isasWithDisabledHWMonitor:
- isaString = ', '.join(map(gfxName, isasWithDisabledHWMonitor))
- printWarning(f"HardwareMonitor currently disabled for {isaString}")
-diff --git a/Tensile/Source/lib/include/Tensile/AMDGPU.hpp b/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-index 1dc9b82d8c3a..7e8b0ac545f1 100644
---- a/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-+++ b/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-@@ -77,6 +77,7 @@ namespace Tensile
- gfx1150 = 1150,
- gfx1151 = 1151,
- gfx1152 = 1152,
-+ gfx1153 = 1153,
- gfx1200 = 1200,
- gfx1201 = 1201
- };
-@@ -127,6 +128,8 @@ namespace Tensile
- return "gfx1150";
- case AMDGPU::Processor::gfx1151:
- return "gfx1151";
-+ case AMDGPU::Processor::gfx1153:
-+ return "gfx1153";
- case AMDGPU::Processor::gfx1152:
- return "gfx1152";
- case AMDGPU::Processor::gfx1200:
-@@ -231,6 +234,10 @@ namespace Tensile
- {
- return AMDGPU::Processor::gfx1152;
- }
-+ else if(deviceString.find("gfx1153") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx1153;
-+ }
- else
- {
- return static_cast<AMDGPU::Processor>(0);
-diff --git a/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp b/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-index cb1c085258c9..77c9ced2cc35 100644
---- a/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-+++ b/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-@@ -61,9 +61,7 @@ namespace Tensile
- gfx1151,
- gfx1150,
- gfx1152,
-- gfx1103,
-- gfx1150,
-- gfx1151,
-+ gfx1153,
- gfx1200,
- gfx1201,
- All
-@@ -122,14 +120,10 @@ namespace Tensile
- return "TensileLibrary_*_gfx1200";
- case LazyLoadingInit::gfx1201:
- return "TensileLibrary_*_gfx1201";
-- case LazyLoadingInit::gfx1103:
-- return "TensileLibrary_*_gfx1103";
-- case LazyLoadingInit::gfx1150:
-- return "TensileLibrary_*_gfx1150";
-- case LazyLoadingInit::gfx1151:
-- return "TensileLibrary_*_gfx1151";
- case LazyLoadingInit::gfx1152:
- return "TensileLibrary_*_gfx1152";
-+ case LazyLoadingInit::gfx1153:
-+ return "TensileLibrary_*_gfx1153";
- case LazyLoadingInit::None:
- return "";
- }
---
-2.52.0
-
diff --git a/0001-tensile-ignore-cache-check.patch b/0001-tensile-ignore-cache-check.patch
deleted file mode 100644
index abe4231..0000000
--- a/0001-tensile-ignore-cache-check.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From c0eae8b2bbe0a94fd6961d0802edf8c6f68227d0 Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Thu, 30 Oct 2025 07:23:52 -0700
-Subject: [PATCH] tensile ignore cache check
-
----
- Tensile/Common.py | 12 +-----------
- 1 file changed, 1 insertion(+), 11 deletions(-)
-
-diff --git a/Tensile/Common.py b/Tensile/Common.py
-index a4a8bb524da0..140d4dbe58c2 100644
---- a/Tensile/Common.py
-+++ b/Tensile/Common.py
-@@ -2104,17 +2104,7 @@ def GetAsmCaps(isaVersion: IsaVersion, hipVersion: SemanticVersion, cachedAsmCap
-
- derivedAsmCaps["SupportedSource"] = True
-
-- ignoreCacheCheck = globalParameters["IgnoreAsmCapCache"]
--
-- # disable cache checking for < rocm 5.3
-- if len(hipVersion) >= 2:
-- ignoreCacheCheck = ignoreCacheCheck or \
-- hipVersion.major < 5 or \
-- (hipVersion.major == 5 and hipVersion.minor <= 2)
--
-- if not derivedAsmCaps["SupportedISA"] and cachedAsmCaps[isaVersion]["SupportedISA"]:
-- printWarning("Architecture {} not supported by ROCm {}".format(isaVersion, globalParameters['HipClangVersion']), DeveloperWarning)
-- ignoreCacheCheck = True
-+ ignoreCacheCheck = True
-
- # check if derived caps matches asm cap cache
- if not ignoreCacheCheck:
---
-2.52.0
-
diff --git a/0001-tensile-improve-the-warning-for-asm-caps-mismatches.patch b/0001-tensile-improve-the-warning-for-asm-caps-mismatches.patch
new file mode 100644
index 0000000..453adc3
--- /dev/null
+++ b/0001-tensile-improve-the-warning-for-asm-caps-mismatches.patch
@@ -0,0 +1,43 @@
+From 4953fce2ed3979eccead9706773eab9ead3a3d8a Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Wed, 18 Nov 2026 15:45:00 -0800
+Subject: [PATCH 1/6] [tensile] improve the warning for asm caps mismatches
+
+This change prints out the different keys/value pairs when there is
+a difference between the derived and cached asm tables.
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
+---
+ shared/tensile/Tensile/Common.py | 9 +++++++++
+ 1 file changed, 9 insertions(+)
+
+diff --git a/shared/tensile/Tensile/Common.py b/shared/tensile/Tensile/Common.py
+index 5514b9ed1977..c32dd71ed4f3 100644
+--- a/shared/tensile/Tensile/Common.py
++++ b/shared/tensile/Tensile/Common.py
+@@ -2098,6 +2098,14 @@ def locateExe( defaultPath, exeName ): # /opt/rocm/bin, hip-clang
+ return exePath
+ return None
+
++def PrintDiff(d1, d2):
++ keys = set(d1.keys() | d2.keys())
++ for key in keys:
++ v1 = d1.get(key)
++ v2 = d2.get(key)
++ if v1 != v2:
++ printWarning(f"{key}: {v1} != {v2}")
++
+ def GetAsmCaps(isaVersion: IsaVersion, hipVersion: SemanticVersion, cachedAsmCaps: Dict[IsaVersion, dict]) -> Dict[IsaVersion, dict]:
+ """ Determine assembler capabilities by testing short instructions sequences """
+ if globalParameters["AssemblerPath"] is not None:
+@@ -2227,6 +2235,7 @@ def GetAsmCaps(isaVersion: IsaVersion, hipVersion: SemanticVersion, cachedAsmCap
+ exitFlag = True
+ if exitFlag:
+ printWarning("Cached asm caps differ from derived asm caps for {}".format(isaVersion))
++ PrintDiff(derivedAsmCaps, cachedAsmCaps[isaVersion])
+ return derivedAsmCaps
+ else:
+ printWarning("Assembler not present, asm caps loaded from cache are unverified")
+--
+2.56.1
+
diff --git a/0001-tensile-set-default-paths.patch b/0001-tensile-set-default-paths.patch
deleted file mode 100644
index f00414b..0000000
--- a/0001-tensile-set-default-paths.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-From 0a4fb93121619f3fae1fc3ebba4f64a8d053ce93 Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Sat, 20 Sep 2025 08:43:09 -0700
-Subject: [PATCH] tensile set default paths
-
----
- Tensile/Utilities/Toolchain.py | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/Tensile/Utilities/Toolchain.py b/Tensile/Utilities/Toolchain.py
-index ee9cbeeea9f3..c328b74bcbc2 100644
---- a/Tensile/Utilities/Toolchain.py
-+++ b/Tensile/Utilities/Toolchain.py
-@@ -29,8 +29,8 @@ from subprocess import PIPE, run
- from typing import List, NamedTuple, Union
- from warnings import warn
-
--DEFAULT_ROCM_BIN_PATH_POSIX = Path("/opt/rocm/bin")
--DEFAULT_ROCM_LLVM_BIN_PATH_POSIX = Path("/opt/rocm/lib/llvm/bin")
-+DEFAULT_ROCM_BIN_PATH_POSIX = Path("/usr/bin")
-+DEFAULT_ROCM_LLVM_BIN_PATH_POSIX = Path("/usr/lib64/rocm/llvm/bin")
- DEFAULT_ROCM_BIN_PATH_WINDOWS = Path("C:/Program Files/AMD/ROCm")
-
-
-@@ -89,7 +89,7 @@ def _posixSearchPaths() -> List[Path]:
- if os.environ.get("ROCM_PATH"):
- for p in os.environ["ROCM_PATH"].split(os.pathsep):
- searchPaths.append(Path(p) / "bin")
-- searchPaths.append(Path(p) / "lib" / "llvm" / "bin")
-+ searchPaths.append(Path(p) / "lib64" / "rocm" / "llvm" / "bin")
-
- searchPaths.extend(
- [
---
-2.52.0
-
diff --git a/0002-add-generic-gpu-targets.patch b/0002-add-generic-gpu-targets.patch
deleted file mode 100644
index 1c94256..0000000
--- a/0002-add-generic-gpu-targets.patch
+++ /dev/null
@@ -1,592 +0,0 @@
-From a8a0e23fbaf6aacb42f7b505feb1ab8f06adbbea Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Sun, 8 Mar 2026 01:32:28 +0000
-Subject: [PATCH 2/6] add generic gpu targets
-
-To support generic gpu targets ex/ -DGPU_TARGETS=gfx11-generic.
-
-Tensile does not have support for every possible gpu target. Instead
-of adding then piecement, provide support for all the generic targets.
-
-In Common.py overload int tuple for SupportedISA, where if the last
-value is negative, then this is a generic isa.
-Ex
- (10,3,-1) -> gfx10-3-generic
- (11,0,-1) -> gfx11-generic
-
-In AsmCaps, cut-n-paste generic tables from a close existing table.
-ex/ (10,3,0) was used of (10,3,-1). Then fix the values based on
-the derrived vs cached warnings during a build.
-
-Add new mapping where appropriate.
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- shared/tensile/Tensile/AsmCaps.py | 264 ++++++++++++++++++
- shared/tensile/Tensile/Common.py | 57 +++-
- .../cmake/TensileSupportedArchitectures.cmake | 9 +-
- .../Source/lib/include/Tensile/AMDGPU.hpp | 44 ++-
- .../include/Tensile/PlaceholderLibrary.hpp | 18 ++
- 5 files changed, 375 insertions(+), 17 deletions(-)
-
-diff --git a/shared/tensile/Tensile/AsmCaps.py b/shared/tensile/Tensile/AsmCaps.py
-index 4bed5cd9f4ff..ed71b8dee02d 100644
---- a/shared/tensile/Tensile/AsmCaps.py
-+++ b/shared/tensile/Tensile/AsmCaps.py
-@@ -169,6 +169,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (9, 0, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': False,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': False,
-+ 'v_dot2c_f32_f16': False,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': False,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': False,
-+ 'v_mac_f16': True,
-+ 'v_mac_f32': True,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (9, 0, 6): {'HasAddLshl': True,
- 'HasAtomicAdd': False,
- 'HasDirectToLdsDest': False,
-@@ -389,6 +433,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': True,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (9, 4, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': False,
-+ 'HasGLCModifier': False,
-+ 'HasNTModifier': True,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': True,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': True,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': True,
-+ 'HasMFMA_f64': True,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': True,
-+ 'HasMFMA_vgpr': True,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': True,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': True,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': True,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': True,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (9, 5, 0): {'HasAddLshl': True,
- 'HasAtomicAdd': True,
- 'HasDirectToLdsDest': False,
-@@ -477,6 +565,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (10, 1, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': False,
-+ 'v_dot2c_f32_f16': False,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': True,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (10, 1, 1): {'HasAddLshl': True,
- 'HasAtomicAdd': False,
- 'HasDirectToLdsDest': False,
-@@ -609,6 +741,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (10, 3, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': True,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (10, 3, 1): {'HasAddLshl': True,
- 'HasAtomicAdd': False,
- 'HasDirectToLdsDest': False,
-@@ -917,6 +1093,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (11, 0, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': True,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (11, 0, 1): {'HasAddLshl': True,
- 'HasAtomicAdd': True,
- 'HasDirectToLdsDest': False,
-@@ -1269,6 +1489,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (12, 0, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': False,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': False,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (12, 0, 1): {'HasAddLshl': True,
- 'HasAtomicAdd': False,
- 'HasDirectToLdsDest': False,
-diff --git a/shared/tensile/Tensile/Common.py b/shared/tensile/Tensile/Common.py
-index a4db814f542f..ef13633f4571 100644
---- a/shared/tensile/Tensile/Common.py
-+++ b/shared/tensile/Tensile/Common.py
-@@ -246,12 +246,12 @@ globalParameters["NumMergedFiles"] = 1 # The number of files that ker
-
- globalParameters["MaxFileName"] = 64 # If a file name would be longer than this, shorten it with a hash.
- globalParameters["SupportedISA"] = [(8,0,3),
-- (9,0,0), (9,0,6), (9,0,8), (9,0,10), (9,0,12),
-- (9,4,2), (9,5,0),
-- (10,1,0), (10,1,1), (10,1,2), (10,3,0), (10,3,1), (10,3,2), (10,3,3), (10,3,4), (10,3,5), (10,3,6),
-- (11,0,0), (11,0,1), (11,0,2), (11,0,3),
-+ (9,0,0), (9,0,6), (9,0,8), (9,0,10), (9,0,12), (9,0,-1),
-+ (9,4,2), (9,4,-1), (9,5,0),
-+ (10,1,0), (10,1,1), (10,1,2), (10,1,-1), (10,3,0), (10,3,1), (10,3,2), (10,3,3), (10,3,4), (10,3,5), (10,3,6), (10,3,-1),
-+ (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,0,-1),
- (11,5,0), (11,5,1), (11,5,2), (11,5,3),
-- (12,0,0), (12,0,1), (12,5,0)] # assembly kernels writer supports these architectures
-+ (12,0,0), (12,0,1), (12,5,0), (12,0,-1)] # assembly kernels writer supports these architectures
-
- globalParameters["KeepBuildTmp"] = True # Do not remove build artifacts during the build process or build_tmp after build completes
- globalParameters["GenerateManifestAndExit"] = False # Output manifest file with list of expected library objects and exit
-@@ -320,15 +320,15 @@ architectureMap = {
- 'gfx803':'r9nano', 'gfx900':'vega10', 'gfx900:xnack-':'vega10', 'gfx90c':'vega10',
- 'gfx906':'vega20', 'gfx906:xnack+':'vega20', 'gfx906:xnack-':'vega20',
- 'gfx908':'arcturus','gfx908:xnack+':'arcturus', 'gfx908:xnack-':'arcturus',
-- 'gfx90a':'aldebaran', 'gfx90a:xnack+':'aldebaran', 'gfx90a:xnack-':'aldebaran',
-- 'gfx942':'aquavanjaram942', 'gfx942:xnack+':'aquavanjaram942', 'gfx942:xnack-':'aquavanjaram942',
-+ 'gfx90a':'aldebaran', 'gfx90a:xnack+':'aldebaran', 'gfx90a:xnack-':'aldebaran', 'gfx9-generic':'gfx9-generic',
-+ 'gfx942':'aquavanjaram942', 'gfx942:xnack+':'aquavanjaram942', 'gfx942:xnack-':'aquavanjaram942', 'gfx9-4-generic':'gfx9-4-generic',
- 'gfx950':'gfx950', 'gfx950:xnack+':'gfx950', 'gfx950:xnack-':'gfx950',
-- 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14',
-- 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1033':'van gogh', 'gfx1034':'navi24', 'gfx1035':'rembrandt', 'gfx1036':'raphael',
-- 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103',
-+ 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14', 'gfx10-1-generic':'gfx10-1-generic',
-+ 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1033':'van gogh', 'gfx1034':'navi24', 'gfx1035':'rembrandt', 'gfx1036':'raphael', 'gfx10-3-generic':'gfx10-3-generic',
-+ 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103', 'gfx11-generic':'gfx11-generic',
- 'gfx1150':'strixpoint', 'gfx1151':'strixhalo', 'gfx1152':'gfx1152', 'gfx1153':'gfx1153',
- 'gfx1200':'gfx1200',
-- 'gfx1201':'gfx1201',
-+ 'gfx1201':'gfx1201', 'gfx12-generic':'gfx12-generic',
- 'gfx1250':'gfx1250'
- }
-
-@@ -2202,6 +2202,21 @@ def tryAssembler(isaVersion, asmString, debug=False, *options):
-
- def gfxArch(name: str) -> Optional[IsaVersion]:
- import re
-+
-+ # Handle special case for generic architectures like 'gfx10-3-generic'
-+ generic_match = re.search(r'gfx([0-9]+)-([0-9]+)-generic', name)
-+ if generic_match:
-+ major = int(generic_match.group(1))
-+ minor = int(generic_match.group(2))
-+ return (major, minor, -1) # step=-1 to indicate generic
-+
-+ # Handle special case for generic architectures like 'gfx11-generic'
-+ generic_match = re.search(r'gfx([0-9]+)-generic', name)
-+ if generic_match:
-+ major = int(generic_match.group(1))
-+ return (major, 0, -1) # step=-1 to indicate generic, minor=0
-+
-+ # Handle regular architectures like 'gfx900', 'gfx803' etc.
- match = re.search(r'gfx([0-9a-fA-F]{3,})', name)
- if not match: return None
-
-@@ -2220,11 +2235,23 @@ def gfxArch(name: str) -> Optional[IsaVersion]:
- return rv
-
- def gfxName(arch):
-- # convert last digit to hex because reasons
-- name = str(arch[0]) + str(arch[1]) + ('%x' % arch[2])
-+ # If arch[2] is negative, this is a generic target
-+ if arch[2] < 0:
-+ if arch[0] == 9:
-+ if arch[1] == 4:
-+ name = str(arch[0]) + '-' + str(arch[1]) + '-generic'
-+ else:
-+ name = str(arch[0]) + '-generic'
-+ elif arch[0] == 10:
-+ name = str(arch[0]) + '-' + str(arch[1]) + '-generic'
-+ else:
-+ name = str(arch[0]) + '-generic'
-+ else:
-+ # The normal case
-+ # convert last digit to hex because reasons
-+ name = str(arch[0]) + str(arch[1]) + ('%x' % arch[2])
- return 'gfx' + ''.join(map(str,name))
-
--
- def detectIsaWindows(output):
- i = 0
- for line in output:
-@@ -2476,7 +2503,7 @@ def assignGlobalParameters( config, capabilitiesCache: Optional[dict] = None ):
- if os.name == "nt":
- globalParameters["CurrentISA"] = (9,0,6)
- printWarning("Failed to detect ISA so forcing (gfx906) on windows")
-- isasWithDisabledHWMonitor = ((9,4,2), (9,5,0), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (12,0,0), (12,0,1))
-+ isasWithDisabledHWMonitor = ((9,0,-1), (9,4,2), (9,4,-1), (9,5,0), (10,1,-1), (10,3,-1), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (11,0,-1), (12,0,0), (12,0,1), (12,0,-1))
- if globalParameters["CurrentISA"] in isasWithDisabledHWMonitor:
- isaString = ', '.join(map(gfxName, isasWithDisabledHWMonitor))
- printWarning(f"HardwareMonitor currently disabled for {isaString}")
-diff --git a/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake b/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-index 56e3057d8511..2139617551c4 100644
---- a/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-+++ b/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-@@ -36,11 +36,14 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx906"
- "gfx908"
- "gfx90a"
-+ "gfx9-generic"
- "gfx942"
-+ "gfx9-4-generic"
- "gfx950"
- "gfx1010"
- "gfx1011"
- "gfx1012"
-+ "gfx10-1-generic"
- "gfx1030"
- "gfx1031"
- "gfx1032"
-@@ -48,6 +51,7 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx1034"
- "gfx1035"
- "gfx1036"
-+ "gfx10-3-generic"
- "gfx1100"
- "gfx1101"
- "gfx1102"
-@@ -56,9 +60,12 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx1151"
- "gfx1152"
- "gfx1153"
-+ "gfx11-generic"
- "gfx1200"
- "gfx1201"
-- "gfx1250")
-+ "gfx1250"
-+ "gfx12-generic"
-+ )
-
- set(SUPPORTED_ARCHITECTURES ${BASE_ARCHITECTURES})
- list(APPEND SUPPORTED_ARCHITECTURES
-diff --git a/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp b/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-index f2bf41b507a3..4b71db91f814 100644
---- a/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-+++ b/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-@@ -83,7 +83,13 @@ namespace Tensile
- gfx1153 = 1153,
- gfx1200 = 1200,
- gfx1201 = 1201,
-- gfx1250 = 1250
-+ gfx1250 = 1250,
-+ gfx9_generic = -900,
-+ gfx9_4_generic = -940,
-+ gfx10_1_generic = -1010,
-+ gfx10_3_generic = -1030,
-+ gfx11_generic = -1100,
-+ gfx12_generic = -1200,
- };
-
- static std::string toString(Processor p)
-@@ -148,6 +154,18 @@ namespace Tensile
- return "gfx1201";
- case AMDGPU::Processor::gfx1250:
- return "gfx1250";
-+ case AMDGPU::Processor::gfx9_generic:
-+ return "gfx9-generic";
-+ case AMDGPU::Processor::gfx9_4_generic:
-+ return "gfx9-4-generic";
-+ case AMDGPU::Processor::gfx10_1_generic:
-+ return "gfx10-1-generic";
-+ case AMDGPU::Processor::gfx10_3_generic:
-+ return "gfx10-3-generic";
-+ case AMDGPU::Processor::gfx11_generic:
-+ return "gfx11-generic";
-+ case AMDGPU::Processor::gfx12_generic:
-+ return "gfx12-generic";
- }
- return "";
- }
-@@ -270,6 +288,30 @@ namespace Tensile
- {
- return AMDGPU::Processor::gfx1250;
- }
-+ else if(deviceString.find("gfx9-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx9_generic;
-+ }
-+ else if(deviceString.find("gfx9-4-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx9_4_generic;
-+ }
-+ else if(deviceString.find("gfx10-1-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx10_1_generic;
-+ }
-+ else if(deviceString.find("gfx10-3-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx10_3_generic;
-+ }
-+ else if(deviceString.find("gfx11-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx11_generic;
-+ }
-+ else if(deviceString.find("gfx12-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx12_generic;
-+ }
- else
- {
- return static_cast<AMDGPU::Processor>(0);
-diff --git a/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp b/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-index 9e21d4ac0805..421b21c5f7dd 100644
---- a/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-+++ b/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-@@ -68,6 +68,12 @@ namespace Tensile
- gfx1200,
- gfx1201,
- gfx1250,
-+ gfx9_generic,
-+ gfx9_4_generic,
-+ gfx10_1_generic,
-+ gfx10_3_generic,
-+ gfx11_generic,
-+ gfx12_generic,
- All
- };
-
-@@ -136,6 +142,18 @@ namespace Tensile
- return "TensileLibrary_*_gfx1201";
- case LazyLoadingInit::gfx1250:
- return "TensileLibrary_*_gfx1250";
-+ case LazyLoadingInit::gfx9_generic:
-+ return "TensileLibrary_*_gfx9-generic";
-+ case LazyLoadingInit::gfx9_4_generic:
-+ return "TensileLibrary_*_gfx9-4-generic";
-+ case LazyLoadingInit::gfx10_1_generic:
-+ return "TensileLibrary_*_gfx10-1-generic";
-+ case LazyLoadingInit::gfx10_3_generic:
-+ return "TensileLibrary_*_gfx10-3-generic";
-+ case LazyLoadingInit::gfx11_generic:
-+ return "TensileLibrary_*_gfx11-generic";
-+ case LazyLoadingInit::gfx12_generic:
-+ return "TensileLibrary_*_gfx12-generic";
- case LazyLoadingInit::None:
- return "";
- }
---
-2.53.0
-
diff --git a/0002-tensile-add-generic-gpu-targets.patch b/0002-tensile-add-generic-gpu-targets.patch
new file mode 100644
index 0000000..a42a5c2
--- /dev/null
+++ b/0002-tensile-add-generic-gpu-targets.patch
@@ -0,0 +1,605 @@
+From 447f4f87eb0635ea2a591046dccbd8fccc114e9e Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Wed, 18 Nov 2026 16:07:49 -0800
+Subject: [PATCH 2/6] [tensile] add generic gpu targets
+
+To support generic gpu targets ex/ -DGPU_TARGETS=gfx11-generic.
+
+Tensile does not have support for every possible gpu target. Instead
+of adding them piecemeal, provide support for all the generic targets.
+
+In Common.py overload int tuple for SupportedISA, where if the last
+value is negative, then this is a generic isa.
+Ex
+ (10,3,-1) -> gfx10-3-generic
+ (11,0,-1) -> gfx11-generic
+
+In AsmCaps, cut-n-paste generic tables from a close existing table.
+ex/ (10,3,0) was used for (10,3,-1). Then fix the values based on
+the derived vs cached warnings during a build.
+
+The (11,0,-1) and (12,0,-1) tables keep VOP3v_dot4_i32_i8 False in
+the base cache and enable it in the v19_diff overlay, matching how
+the specific gfx11/gfx12 ISAs are handled in this tree.
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
+---
+ shared/tensile/Tensile/AsmCaps.py | 268 +++++++++++++++++-
+ shared/tensile/Tensile/Common.py | 53 +++-
+ .../cmake/TensileSupportedArchitectures.cmake | 6 +
+ .../Source/lib/include/Tensile/AMDGPU.hpp | 44 ++-
+ .../include/Tensile/PlaceholderLibrary.hpp | 18 ++
+ 5 files changed, 375 insertions(+), 14 deletions(-)
+
+diff --git a/shared/tensile/Tensile/AsmCaps.py b/shared/tensile/Tensile/AsmCaps.py
+index 465466672b5f..9c32e203c0ae 100644
+--- a/shared/tensile/Tensile/AsmCaps.py
++++ b/shared/tensile/Tensile/AsmCaps.py
+@@ -169,6 +169,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
+ 'v_mov_b64': False,
+ 'v_pk_fma_f16': True,
+ 'v_pk_fmac_f16': False},
++ (9, 0, -1): {'HasAddLshl': True,
++ 'HasAtomicAdd': False,
++ 'HasDirectToLdsDest': False,
++ 'HasDirectToLdsNoDest': True,
++ 'HasExplicitCO': True,
++ 'HasExplicitNC': False,
++ 'HasGLCModifier': True,
++ 'HasNTModifier': False,
++ 'HasLshlOr': True,
++ 'HasMFMA': False,
++ 'HasMFMA_b8': False,
++ 'HasMFMA_bf16_1k': False,
++ 'HasMFMA_bf16_original': False,
++ 'HasMFMA_constSrc': False,
++ 'HasMFMA_f64': False,
++ 'HasMFMA_f8': False,
++ 'HasMFMA_i8_908': False,
++ 'HasMFMA_i8_940': False,
++ 'HasMFMA_vgpr': False,
++ 'HasMFMA_xf32': False,
++ 'HasSMulHi': True,
++ 'HasWMMA': False,
++ 'KernargPreloading': False,
++ 'MaxLgkmcnt': 15,
++ 'MaxVmcnt': 63,
++ 'SupportedISA': True,
++ 'SupportedSource': True,
++ 'VOP3v_dot4_i32_i8': False,
++ 'v_dot2_f32_f16': False,
++ 'v_dot2c_f32_f16': False,
++ 'v_dot4_i32_i8': False,
++ 'v_dot4c_i32_i8': False,
++ 'v_fma_f16': True,
++ 'v_fma_f32': True,
++ 'v_fma_f64': True,
++ 'v_fma_mix_f32': False,
++ 'v_fmac_f16': False,
++ 'v_fmac_f32': False,
++ 'v_mac_f16': True,
++ 'v_mac_f32': True,
++ 'v_mad_mix_f32': False,
++ 'v_mov_b64': False,
++ 'v_pk_fma_f16': True,
++ 'v_pk_fmac_f16': False},
+ (9, 0, 6): {'HasAddLshl': True,
+ 'HasAtomicAdd': False,
+ 'HasDirectToLdsDest': False,
+@@ -389,6 +433,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
+ 'v_mov_b64': True,
+ 'v_pk_fma_f16': True,
+ 'v_pk_fmac_f16': False},
++ (9, 4, -1): {'HasAddLshl': True,
++ 'HasAtomicAdd': True,
++ 'HasDirectToLdsDest': False,
++ 'HasDirectToLdsNoDest': True,
++ 'HasExplicitCO': True,
++ 'HasExplicitNC': False,
++ 'HasGLCModifier': False,
++ 'HasNTModifier': True,
++ 'HasLshlOr': True,
++ 'HasMFMA': True,
++ 'HasMFMA_b8': False,
++ 'HasMFMA_bf16_1k': True,
++ 'HasMFMA_bf16_original': False,
++ 'HasMFMA_constSrc': True,
++ 'HasMFMA_f64': True,
++ 'HasMFMA_f8': False,
++ 'HasMFMA_i8_908': False,
++ 'HasMFMA_i8_940': True,
++ 'HasMFMA_vgpr': True,
++ 'HasMFMA_xf32': False,
++ 'HasSMulHi': True,
++ 'HasWMMA': False,
++ 'KernargPreloading': True,
++ 'MaxLgkmcnt': 15,
++ 'MaxVmcnt': 63,
++ 'SupportedISA': True,
++ 'SupportedSource': True,
++ 'VOP3v_dot4_i32_i8': True,
++ 'v_dot2_f32_f16': True,
++ 'v_dot2c_f32_f16': True,
++ 'v_dot4_i32_i8': False,
++ 'v_dot4c_i32_i8': True,
++ 'v_fma_f16': True,
++ 'v_fma_f32': True,
++ 'v_fma_f64': True,
++ 'v_fma_mix_f32': True,
++ 'v_fmac_f16': False,
++ 'v_fmac_f32': True,
++ 'v_mac_f16': True,
++ 'v_mac_f32': False,
++ 'v_mad_mix_f32': False,
++ 'v_mov_b64': True,
++ 'v_pk_fma_f16': True,
++ 'v_pk_fmac_f16': False},
+ (9, 5, 0): {'HasAddLshl': True,
+ 'HasAtomicAdd': True,
+ 'HasDirectToLdsDest': False,
+@@ -565,6 +653,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
+ 'v_mov_b64': False,
+ 'v_pk_fma_f16': True,
+ 'v_pk_fmac_f16': False},
++ (10, 1, -1): {'HasAddLshl': True,
++ 'HasAtomicAdd': False,
++ 'HasDirectToLdsDest': False,
++ 'HasDirectToLdsNoDest': True,
++ 'HasExplicitCO': True,
++ 'HasExplicitNC': True,
++ 'HasGLCModifier': True,
++ 'HasNTModifier': False,
++ 'HasLshlOr': True,
++ 'HasMFMA': False,
++ 'HasMFMA_b8': False,
++ 'HasMFMA_bf16_1k': False,
++ 'HasMFMA_bf16_original': False,
++ 'HasMFMA_constSrc': False,
++ 'HasMFMA_f64': False,
++ 'HasMFMA_f8': False,
++ 'HasMFMA_i8_908': False,
++ 'HasMFMA_i8_940': False,
++ 'HasMFMA_vgpr': False,
++ 'HasMFMA_xf32': False,
++ 'HasSMulHi': True,
++ 'HasWMMA': False,
++ 'KernargPreloading': False,
++ 'MaxLgkmcnt': 15,
++ 'MaxVmcnt': 63,
++ 'SupportedISA': True,
++ 'SupportedSource': True,
++ 'VOP3v_dot4_i32_i8': False,
++ 'v_dot2_f32_f16': False,
++ 'v_dot2c_f32_f16': False,
++ 'v_dot4_i32_i8': False,
++ 'v_dot4c_i32_i8': False,
++ 'v_fma_f16': True,
++ 'v_fma_f32': True,
++ 'v_fma_f64': True,
++ 'v_fma_mix_f32': True,
++ 'v_fmac_f16': False,
++ 'v_fmac_f32': True,
++ 'v_mac_f16': False,
++ 'v_mac_f32': True,
++ 'v_mad_mix_f32': False,
++ 'v_mov_b64': False,
++ 'v_pk_fma_f16': True,
++ 'v_pk_fmac_f16': False},
+ (10, 3, 0): {'HasAddLshl': True,
+ 'HasAtomicAdd': False,
+ 'HasDirectToLdsDest': False,
+@@ -873,6 +1005,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
+ 'v_mov_b64': False,
+ 'v_pk_fma_f16': True,
+ 'v_pk_fmac_f16': False},
++ (10, 3, -1): {'HasAddLshl': True,
++ 'HasAtomicAdd': False,
++ 'HasDirectToLdsDest': False,
++ 'HasDirectToLdsNoDest': True,
++ 'HasExplicitCO': True,
++ 'HasExplicitNC': True,
++ 'HasGLCModifier': True,
++ 'HasNTModifier': False,
++ 'HasLshlOr': True,
++ 'HasMFMA': False,
++ 'HasMFMA_b8': False,
++ 'HasMFMA_bf16_1k': False,
++ 'HasMFMA_bf16_original': False,
++ 'HasMFMA_constSrc': False,
++ 'HasMFMA_f64': False,
++ 'HasMFMA_f8': False,
++ 'HasMFMA_i8_908': False,
++ 'HasMFMA_i8_940': False,
++ 'HasMFMA_vgpr': False,
++ 'HasMFMA_xf32': False,
++ 'HasSMulHi': True,
++ 'HasWMMA': False,
++ 'KernargPreloading': False,
++ 'MaxLgkmcnt': 15,
++ 'MaxVmcnt': 63,
++ 'SupportedISA': True,
++ 'SupportedSource': True,
++ 'VOP3v_dot4_i32_i8': True,
++ 'v_dot2_f32_f16': True,
++ 'v_dot2c_f32_f16': True,
++ 'v_dot4_i32_i8': False,
++ 'v_dot4c_i32_i8': True,
++ 'v_fma_f16': True,
++ 'v_fma_f32': True,
++ 'v_fma_f64': True,
++ 'v_fma_mix_f32': True,
++ 'v_fmac_f16': False,
++ 'v_fmac_f32': True,
++ 'v_mac_f16': False,
++ 'v_mac_f32': False,
++ 'v_mad_mix_f32': False,
++ 'v_mov_b64': False,
++ 'v_pk_fma_f16': True,
++ 'v_pk_fmac_f16': False},
+ (11, 0, 0): {'HasAddLshl': True,
+ 'HasAtomicAdd': True,
+ 'HasDirectToLdsDest': False,
+@@ -1049,6 +1225,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
+ 'v_mov_b64': False,
+ 'v_pk_fma_f16': True,
+ 'v_pk_fmac_f16': False},
++ (11, 0, -1): {'HasAddLshl': True,
++ 'HasAtomicAdd': True,
++ 'HasDirectToLdsDest': False,
++ 'HasDirectToLdsNoDest': False,
++ 'HasExplicitCO': True,
++ 'HasExplicitNC': True,
++ 'HasGLCModifier': True,
++ 'HasNTModifier': False,
++ 'HasLshlOr': True,
++ 'HasMFMA': False,
++ 'HasMFMA_b8': False,
++ 'HasMFMA_bf16_1k': False,
++ 'HasMFMA_bf16_original': False,
++ 'HasMFMA_constSrc': False,
++ 'HasMFMA_f64': False,
++ 'HasMFMA_f8': False,
++ 'HasMFMA_i8_908': False,
++ 'HasMFMA_i8_940': False,
++ 'HasMFMA_vgpr': False,
++ 'HasMFMA_xf32': False,
++ 'HasSMulHi': True,
++ 'HasWMMA': True,
++ 'KernargPreloading': False,
++ 'MaxLgkmcnt': 15,
++ 'MaxVmcnt': 63,
++ 'SupportedISA': True,
++ 'SupportedSource': True,
++ 'VOP3v_dot4_i32_i8': False,
++ 'v_dot2_f32_f16': True,
++ 'v_dot2c_f32_f16': True,
++ 'v_dot4_i32_i8': False,
++ 'v_dot4c_i32_i8': False,
++ 'v_fma_f16': True,
++ 'v_fma_f32': True,
++ 'v_fma_f64': True,
++ 'v_fma_mix_f32': True,
++ 'v_fmac_f16': False,
++ 'v_fmac_f32': True,
++ 'v_mac_f16': False,
++ 'v_mac_f32': False,
++ 'v_mad_mix_f32': False,
++ 'v_mov_b64': False,
++ 'v_pk_fma_f16': True,
++ 'v_pk_fmac_f16': False},
+ (11, 5, 0): {'HasAddLshl': True,
+ 'HasAtomicAdd': True,
+ 'HasDirectToLdsDest': False,
+@@ -1401,6 +1621,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
+ 'v_mov_b64': False,
+ 'v_pk_fma_f16': True,
+ 'v_pk_fmac_f16': False},
++ (12, 0, -1): {'HasAddLshl': True,
++ 'HasAtomicAdd': False,
++ 'HasDirectToLdsDest': False,
++ 'HasDirectToLdsNoDest': False,
++ 'HasExplicitCO': True,
++ 'HasExplicitNC': True,
++ 'HasGLCModifier': False,
++ 'HasNTModifier': False,
++ 'HasLshlOr': True,
++ 'HasMFMA': False,
++ 'HasMFMA_b8': False,
++ 'HasMFMA_bf16_1k': False,
++ 'HasMFMA_bf16_original': False,
++ 'HasMFMA_constSrc': False,
++ 'HasMFMA_f64': False,
++ 'HasMFMA_f8': False,
++ 'HasMFMA_i8_908': False,
++ 'HasMFMA_i8_940': False,
++ 'HasMFMA_vgpr': False,
++ 'HasMFMA_xf32': False,
++ 'HasSMulHi': True,
++ 'HasWMMA': False,
++ 'KernargPreloading': False,
++ 'MaxLgkmcnt': 15,
++ 'MaxVmcnt': 63,
++ 'SupportedISA': True,
++ 'SupportedSource': True,
++ 'VOP3v_dot4_i32_i8': False,
++ 'v_dot2_f32_f16': True,
++ 'v_dot2c_f32_f16': False,
++ 'v_dot4_i32_i8': False,
++ 'v_dot4c_i32_i8': False,
++ 'v_fma_f16': True,
++ 'v_fma_f32': True,
++ 'v_fma_f64': True,
++ 'v_fma_mix_f32': True,
++ 'v_fmac_f16': False,
++ 'v_fmac_f32': True,
++ 'v_mac_f16': False,
++ 'v_mac_f32': False,
++ 'v_mad_mix_f32': False,
++ 'v_mov_b64': False,
++ 'v_pk_fma_f16': True,
++ 'v_pk_fmac_f16': False},
+ (12, 5, 0): {'HasAddLshl': True,
+ 'HasAtomicAdd': False,
+ 'HasDirectToLdsDest': False,
+@@ -1456,6 +1720,7 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
+ (11, 0, 1): {'VOP3v_dot4_i32_i8': True},
+ (11, 0, 2): {'VOP3v_dot4_i32_i8': True},
+ (11, 0, 3): {'VOP3v_dot4_i32_i8': True},
++ (11, 0, -1): {'VOP3v_dot4_i32_i8': True},
+ (11, 5, 0): {'VOP3v_dot4_i32_i8': True},
+ (11, 5, 1): {'VOP3v_dot4_i32_i8': True},
+ (11, 5, 2): {'VOP3v_dot4_i32_i8': True},
+@@ -1463,7 +1728,8 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
+ (11, 7, 0): {'VOP3v_dot4_i32_i8': True},
+ (11, 7, 1): {'VOP3v_dot4_i32_i8': True},
+ (12, 0, 0): {'VOP3v_dot4_i32_i8': True},
+- (12, 0, 1): {'VOP3v_dot4_i32_i8': True}}
++ (12, 0, 1): {'VOP3v_dot4_i32_i8': True},
++ (12, 0, -1): {'VOP3v_dot4_i32_i8': True}}
+
+ nested_update_(cachedAsmCaps, v19_diff)
+
+diff --git a/shared/tensile/Tensile/Common.py b/shared/tensile/Tensile/Common.py
+index c32dd71ed4f3..6a49f55a5ea3 100644
+--- a/shared/tensile/Tensile/Common.py
++++ b/shared/tensile/Tensile/Common.py
+@@ -331,12 +331,12 @@ globalParameters["NumMergedFiles"] = 1 # The number of files that ker
+
+ globalParameters["MaxFileName"] = 64 # If a file name would be longer than this, shorten it with a hash.
+ globalParameters["SupportedISA"] = [(8,0,3),
+- (9,0,0), (9,0,6), (9,0,8), (9,0,10), (9,0,12),
+- (9,4,2), (9,5,0),
+- (10,1,0), (10,1,1), (10,1,2), (10,3,0), (10,3,1), (10,3,2), (10,3,3), (10,3,4), (10,3,5), (10,3,6),
+- (11,0,0), (11,0,1), (11,0,2), (11,0,3),
++ (9,0,0), (9,0,6), (9,0,8), (9,0,10), (9,0,12), (9,0,-1),
++ (9,4,2), (9,4,-1), (9,5,0),
++ (10,1,0), (10,1,1), (10,1,2), (10,1,-1), (10,3,0), (10,3,1), (10,3,2), (10,3,3), (10,3,4), (10,3,5), (10,3,6), (10,3,-1),
++ (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,0,-1),
+ (11,5,0), (11,5,1), (11,5,2), (11,5,3), (11,7,0), (11,7,1),
+- (12,0,0), (12,0,1), (12,5,0)] # assembly kernels writer supports these architectures
++ (12,0,0), (12,0,1), (12,5,0), (12,0,-1)] # assembly kernels writer supports these architectures
+
+ globalParameters["KeepBuildTmp"] = True # Do not remove build artifacts during the build process or build_tmp after build completes
+ globalParameters["GenerateManifestAndExit"] = False # Output manifest file with list of expected library objects and exit
+@@ -405,16 +405,16 @@ architectureMap = {
+ 'gfx803':'r9nano', 'gfx900':'vega10', 'gfx900:xnack-':'vega10', 'gfx90c':'vega10',
+ 'gfx906':'vega20', 'gfx906:xnack+':'vega20', 'gfx906:xnack-':'vega20',
+ 'gfx908':'arcturus','gfx908:xnack+':'arcturus', 'gfx908:xnack-':'arcturus',
+- 'gfx90a':'aldebaran', 'gfx90a:xnack+':'aldebaran', 'gfx90a:xnack-':'aldebaran',
+- 'gfx942':'aquavanjaram942', 'gfx942:xnack+':'aquavanjaram942', 'gfx942:xnack-':'aquavanjaram942',
++ 'gfx90a':'aldebaran', 'gfx90a:xnack+':'aldebaran', 'gfx90a:xnack-':'aldebaran', 'gfx9-generic':'gfx9-generic',
++ 'gfx942':'aquavanjaram942', 'gfx942:xnack+':'aquavanjaram942', 'gfx942:xnack-':'aquavanjaram942', 'gfx9-4-generic':'gfx9-4-generic',
+ 'gfx950':'gfx950', 'gfx950:xnack+':'gfx950', 'gfx950:xnack-':'gfx950',
+- 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14',
+- 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1033':'van gogh', 'gfx1034':'navi24', 'gfx1035':'rembrandt', 'gfx1036':'raphael',
+- 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103',
++ 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14', 'gfx10-1-generic':'gfx10-1-generic',
++ 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1033':'van gogh', 'gfx1034':'navi24', 'gfx1035':'rembrandt', 'gfx1036':'raphael', 'gfx10-3-generic':'gfx10-3-generic',
++ 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103', 'gfx11-generic':'gfx11-generic',
+ 'gfx1150':'strixpoint', 'gfx1151':'strixhalo', 'gfx1152':'gfx1152', 'gfx1153':'gfx1153',
+ 'gfx1170':'gfx1170', 'gfx1171':'gfx1171',
+ 'gfx1200':'gfx1200',
+- 'gfx1201':'gfx1201',
++ 'gfx1201':'gfx1201', 'gfx12-generic':'gfx12-generic',
+ 'gfx1250':'gfx1250',
+ 'gfx1250-strict':'gfx1250'
+ }
+@@ -2296,6 +2296,21 @@ def tryAssembler(isaVersion, asmString, debug=False, *options):
+
+ def gfxArch(name: str) -> Optional[IsaVersion]:
+ import re
++
++ # Handle special case for generic architectures like 'gfx10-3-generic'
++ generic_match = re.search(r'gfx([0-9]+)-([0-9]+)-generic', name)
++ if generic_match:
++ major = int(generic_match.group(1))
++ minor = int(generic_match.group(2))
++ return (major, minor, -1) # step=-1 to indicate generic
++
++ # Handle special case for generic architectures like 'gfx11-generic'
++ generic_match = re.search(r'gfx([0-9]+)-generic', name)
++ if generic_match:
++ major = int(generic_match.group(1))
++ return (major, 0, -1) # step=-1 to indicate generic, minor=0
++
++ # Handle regular architectures like 'gfx900', 'gfx803' etc.
+ match = re.search(r'gfx([0-9a-fA-F]{3,})', name)
+ if not match: return None
+
+@@ -2330,6 +2345,20 @@ def compilerTarget(name):
+
+
+ def gfxName(arch):
++ # If arch[2] is negative, this is a generic target
++ if arch[2] < 0:
++ if arch[0] == 9:
++ if arch[1] == 4:
++ name = str(arch[0]) + '-' + str(arch[1]) + '-generic'
++ else:
++ name = str(arch[0]) + '-generic'
++ elif arch[0] == 10:
++ name = str(arch[0]) + '-' + str(arch[1]) + '-generic'
++ else:
++ name = str(arch[0]) + '-generic'
++ return 'gfx' + name
++
++ # The normal case
+ # convert last digit to hex because reasons
+ name = str(arch[0]) + str(arch[1]) + ('%x' % arch[2])
+ return compilerTarget('gfx' + ''.join(map(str,name)))
+@@ -2590,7 +2619,7 @@ def assignGlobalParameters( config, capabilitiesCache: Optional[dict] = None, *,
+ if os.name == "nt":
+ globalParameters["CurrentISA"] = (9,0,6)
+ printWarning("Failed to detect ISA so forcing (gfx906) on windows")
+- isasWithDisabledHWMonitor = ((9,4,2), (9,5,0), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (12,0,0), (12,0,1))
++ isasWithDisabledHWMonitor = ((9,0,-1), (9,4,2), (9,4,-1), (9,5,0), (10,1,-1), (10,3,-1), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (11,0,-1), (12,0,0), (12,0,1), (12,0,-1))
+ if globalParameters["CurrentISA"] in isasWithDisabledHWMonitor:
+ isaString = ', '.join(map(gfxName, isasWithDisabledHWMonitor))
+ printWarning(f"HardwareMonitor currently disabled for {isaString}")
+diff --git a/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake b/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
+index 695e337005f4..bf533c30fac4 100644
+--- a/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
++++ b/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
+@@ -36,11 +36,14 @@ if(NOT BUILD_ADDRESS_SANITIZER)
+ "gfx906"
+ "gfx908"
+ "gfx90a"
++ "gfx9-generic"
+ "gfx942"
++ "gfx9-4-generic"
+ "gfx950"
+ "gfx1010"
+ "gfx1011"
+ "gfx1012"
++ "gfx10-1-generic"
+ "gfx1030"
+ "gfx1031"
+ "gfx1032"
+@@ -48,6 +51,7 @@ if(NOT BUILD_ADDRESS_SANITIZER)
+ "gfx1034"
+ "gfx1035"
+ "gfx1036"
++ "gfx10-3-generic"
+ "gfx1100"
+ "gfx1101"
+ "gfx1102"
+@@ -58,9 +62,11 @@ if(NOT BUILD_ADDRESS_SANITIZER)
+ "gfx1153"
+ "gfx1170"
+ "gfx1171"
++ "gfx11-generic"
+ "gfx1200"
+ "gfx1201"
+ "gfx1250"
++ "gfx12-generic"
+ "gfx1250-strict")
+
+ set(SUPPORTED_ARCHITECTURES ${BASE_ARCHITECTURES})
+diff --git a/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp b/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
+index 96afc82dc92e..98a308acb12f 100644
+--- a/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
++++ b/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
+@@ -85,7 +85,13 @@ namespace Tensile
+ gfx1171 = 1171,
+ gfx1200 = 1200,
+ gfx1201 = 1201,
+- gfx1250 = 1250
++ gfx1250 = 1250,
++ gfx9_generic = -900,
++ gfx9_4_generic = -940,
++ gfx10_1_generic = -1010,
++ gfx10_3_generic = -1030,
++ gfx11_generic = -1100,
++ gfx12_generic = -1200
+ };
+
+ static std::string toString(Processor p)
+@@ -154,6 +160,18 @@ namespace Tensile
+ return "gfx1201";
+ case AMDGPU::Processor::gfx1250:
+ return "gfx1250";
++ case AMDGPU::Processor::gfx9_generic:
++ return "gfx9-generic";
++ case AMDGPU::Processor::gfx9_4_generic:
++ return "gfx9-4-generic";
++ case AMDGPU::Processor::gfx10_1_generic:
++ return "gfx10-1-generic";
++ case AMDGPU::Processor::gfx10_3_generic:
++ return "gfx10-3-generic";
++ case AMDGPU::Processor::gfx11_generic:
++ return "gfx11-generic";
++ case AMDGPU::Processor::gfx12_generic:
++ return "gfx12-generic";
+ }
+ return "";
+ }
+@@ -284,6 +302,30 @@ namespace Tensile
+ {
+ return AMDGPU::Processor::gfx1250;
+ }
++ else if(deviceString.find("gfx9-generic") != std::string::npos)
++ {
++ return AMDGPU::Processor::gfx9_generic;
++ }
++ else if(deviceString.find("gfx9-4-generic") != std::string::npos)
++ {
++ return AMDGPU::Processor::gfx9_4_generic;
++ }
++ else if(deviceString.find("gfx10-1-generic") != std::string::npos)
++ {
++ return AMDGPU::Processor::gfx10_1_generic;
++ }
++ else if(deviceString.find("gfx10-3-generic") != std::string::npos)
++ {
++ return AMDGPU::Processor::gfx10_3_generic;
++ }
++ else if(deviceString.find("gfx11-generic") != std::string::npos)
++ {
++ return AMDGPU::Processor::gfx11_generic;
++ }
++ else if(deviceString.find("gfx12-generic") != std::string::npos)
++ {
++ return AMDGPU::Processor::gfx12_generic;
++ }
+ else
+ {
+ return static_cast<AMDGPU::Processor>(0);
+diff --git a/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp b/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
+index 7723c1a479c3..b28ab2cf4393 100644
+--- a/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
++++ b/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
+@@ -70,6 +70,12 @@ namespace Tensile
+ gfx1200,
+ gfx1201,
+ gfx1250,
++ gfx9_generic,
++ gfx9_4_generic,
++ gfx10_1_generic,
++ gfx10_3_generic,
++ gfx11_generic,
++ gfx12_generic,
+ All
+ };
+
+@@ -142,6 +148,18 @@ namespace Tensile
+ return "TensileLibrary_*_gfx1201";
+ case LazyLoadingInit::gfx1250:
+ return "TensileLibrary_*_gfx1250";
++ case LazyLoadingInit::gfx9_generic:
++ return "TensileLibrary_*_gfx9-generic";
++ case LazyLoadingInit::gfx9_4_generic:
++ return "TensileLibrary_*_gfx9-4-generic";
++ case LazyLoadingInit::gfx10_1_generic:
++ return "TensileLibrary_*_gfx10-1-generic";
++ case LazyLoadingInit::gfx10_3_generic:
++ return "TensileLibrary_*_gfx10-3-generic";
++ case LazyLoadingInit::gfx11_generic:
++ return "TensileLibrary_*_gfx11-generic";
++ case LazyLoadingInit::gfx12_generic:
++ return "TensileLibrary_*_gfx12-generic";
+ case LazyLoadingInit::None:
+ return "";
+ }
+--
+2.56.1
+
diff --git a/0003-improve-fallback-name-to-handle-generics.patch b/0003-improve-fallback-name-to-handle-generics.patch
deleted file mode 100644
index 792eae9..0000000
--- a/0003-improve-fallback-name-to-handle-generics.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From fc89fe29ed8f4ea26aa6041d6655c1c9b46715dd Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Sun, 8 Mar 2026 13:38:28 -0700
-Subject: [PATCH 3/6] improve fallback name to handle generics
-
-The archName can be of the form gfx90a-xnack{+,-} and this function
-determines the fallback is gfx90a. However when the archName is
-a generic, ex gfx11-generic, the entire name must be used. So
-check if the name ends with -generic and skip splitting.
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- shared/tensile/Tensile/TensileCreateLibrary.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/shared/tensile/Tensile/TensileCreateLibrary.py b/shared/tensile/Tensile/TensileCreateLibrary.py
-index cfb04a938d2c..af55b172422a 100644
---- a/shared/tensile/Tensile/TensileCreateLibrary.py
-+++ b/shared/tensile/Tensile/TensileCreateLibrary.py
-@@ -1001,7 +1001,8 @@ def addFallback(masterLibraries: Dict[str, MasterSolutionLibrary]) -> None:
- value.insert(masterLibraries["fallback"])
-
- for archName in archs:
-- archName = archName.split("-", 1)[0]
-+ if not archName.endswith("-generic"):
-+ archName = archName.split("-", 1)[0]
- if archName not in masterLibraries:
- tPrint(1, "Using fallback for arch: " + archName)
- masterLibraries[archName] = masterLibraries["fallback"]
---
-2.53.0
-
diff --git a/0003-tensile-improve-fallback-name-to-handle-generics.patch b/0003-tensile-improve-fallback-name-to-handle-generics.patch
new file mode 100644
index 0000000..193eb4e
--- /dev/null
+++ b/0003-tensile-improve-fallback-name-to-handle-generics.patch
@@ -0,0 +1,32 @@
+From 4eb393eb86442ffb56d6c33034b8792363137d7e Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Wed, 18 Nov 2026 16:09:36 -0800
+Subject: [PATCH 3/6] [tensile] improve fallback name to handle generics
+
+The archName can be of the form gfx90a-xnack{+,-} and this function
+determines the fallback is gfx90a. However when the archName is
+a generic, ex gfx11-generic, the entire name must be used. So
+check if the name ends with -generic and skip splitting.
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
+---
+ shared/tensile/Tensile/TensileCreateLibrary.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/shared/tensile/Tensile/TensileCreateLibrary.py b/shared/tensile/Tensile/TensileCreateLibrary.py
+index e5014d711a96..15662592527f 100644
+--- a/shared/tensile/Tensile/TensileCreateLibrary.py
++++ b/shared/tensile/Tensile/TensileCreateLibrary.py
+@@ -1002,7 +1002,8 @@ def addFallback(masterLibraries: Dict[str, MasterSolutionLibrary]) -> None:
+ value.insert(masterLibraries["fallback"])
+
+ for archName in archs:
+- archName = archName.split("-xnack", 1)[0]
++ if not archName.endswith("-generic"):
++ archName = archName.split("-xnack", 1)[0]
+ if archName not in masterLibraries:
+ tPrint(1, "Using fallback for arch: " + archName)
+ masterLibraries[archName] = masterLibraries["fallback"]
+--
+2.56.1
+
diff --git a/0004-generic-arches-need-a-solution-index.patch b/0004-generic-arches-need-a-solution-index.patch
deleted file mode 100644
index 1a7046b..0000000
--- a/0004-generic-arches-need-a-solution-index.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 83e07d10fff2097878bfbae3e956c2f5177aa4ed Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Sun, 8 Mar 2026 16:21:07 -0700
-Subject: [PATCH 4/6] generic arches need a solution index
-
-So there is no overlap with the regular gpu indecies, pick
-a shift value that does not overlap.
-
-(9 << 29) >> 18 = 18432
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- shared/tensile/Tensile/SolutionLibrary.py | 9 +++++++--
- 1 file changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/shared/tensile/Tensile/SolutionLibrary.py b/shared/tensile/Tensile/SolutionLibrary.py
-index 0c7b6428d624..e7c4b7457737 100644
---- a/shared/tensile/Tensile/SolutionLibrary.py
-+++ b/shared/tensile/Tensile/SolutionLibrary.py
-@@ -255,7 +255,7 @@ class MasterSolutionLibrary:
- """Maps hex characters from gfx name to an index.
-
- Given a gfx name of the form gfx[0-9a-f]*, map the characters following
-- gfx from hex to int and left shift the integer by 18.
-+ gfx from hex to int and left shift the integer by 18 (or 29 for generic architectures).
-
- Args:
- architectureName: The gfx name (or fallback).
-@@ -273,7 +273,12 @@ class MasterSolutionLibrary:
- archString = re.search('(?<=gfx)[0-9a-f]*', architectureName)
- if archString is not None:
- archLiteral = archString.group(0)
-- archval = (int(archLiteral, 16) << 18)
-+ # Use left shift of 29 for generic architectures, 18 otherwise
-+ if architectureName.endswith("-generic"):
-+ shift_bits = 29
-+ else:
-+ shift_bits = 18
-+ archval = (int(archLiteral, 16) << shift_bits)
- # Check for duplicate architecture values
- if archval >= 0 and not archval in cls.ArchitectureSet:
- cls.ArchitectureSet.add(archval)
---
-2.53.0
-
diff --git a/0004-tensile-generic-arches-need-a-solution-index.patch b/0004-tensile-generic-arches-need-a-solution-index.patch
new file mode 100644
index 0000000..e2a0072
--- /dev/null
+++ b/0004-tensile-generic-arches-need-a-solution-index.patch
@@ -0,0 +1,45 @@
+From 3cc51a5c89464d5a15c592c8e70e0f932fd84412 Mon Sep 17 00:00:00 2001
+From: Tom Rix <Tom.Rix@amd.com>
+Date: Wed, 18 Nov 2026 16:09:36 -0800
+Subject: [PATCH 4/6] [tensile] generic arches need a solution index
+
+So there is no overlap with the regular gpu indices, pick
+a shift value that does not overlap.
+
+(9 << 29) >> 18 = 18432
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
+---
+ shared/tensile/Tensile/SolutionLibrary.py | 9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
+
+diff --git a/shared/tensile/Tensile/SolutionLibrary.py b/shared/tensile/Tensile/SolutionLibrary.py
+index 0c7b6428d624..e7c4b7457737 100644
+--- a/shared/tensile/Tensile/SolutionLibrary.py
++++ b/shared/tensile/Tensile/SolutionLibrary.py
+@@ -255,7 +255,7 @@ class MasterSolutionLibrary:
+ """Maps hex characters from gfx name to an index.
+
+ Given a gfx name of the form gfx[0-9a-f]*, map the characters following
+- gfx from hex to int and left shift the integer by 18.
++ gfx from hex to int and left shift the integer by 18 (or 29 for generic architectures).
+
+ Args:
+ architectureName: The gfx name (or fallback).
+@@ -273,7 +273,12 @@ class MasterSolutionLibrary:
+ archString = re.search('(?<=gfx)[0-9a-f]*', architectureName)
+ if archString is not None:
+ archLiteral = archString.group(0)
+- archval = (int(archLiteral, 16) << 18)
++ # Use left shift of 29 for generic architectures, 18 otherwise
++ if architectureName.endswith("-generic"):
++ shift_bits = 29
++ else:
++ shift_bits = 18
++ archval = (int(archLiteral, 16) << shift_bits)
+ # Check for duplicate architecture values
+ if archval >= 0 and not archval in cls.ArchitectureSet:
+ cls.ArchitectureSet.add(archval)
+--
+2.56.1
+
diff --git a/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch b/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
index ec3518c..bcae8c0 100644
--- a/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
+++ b/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
@@ -1,25 +1,29 @@
-From d9c3f1d52a6a35d69bb0dc9a69dd67521156b032 Mon Sep 17 00:00:00 2001
+From 1e2b68d8a5387a90a3eef397d94925c2e10afa5b Mon Sep 17 00:00:00 2001
From: Tom Rix <Tom.Rix@amd.com>
-Date: Sun, 29 Mar 2026 10:48:52 -0700
-Subject: [PATCH 5/6] rocblas add rocblas_internal_get_generic_arch_name
+Date: Wed, 18 Nov 2026 16:11:02 -0800
+Subject: [PATCH 5/6] [rocblas] add rocblas_internal_get_generic_arch_name
+A function similar to rocblas_internal_get_arch_name, returns the
+generic name for the arch. ex/ gfx1153 -> gfx11-generic.
+
+Used to fall back to a generic Tensile library when the specific
+arch does not have one.
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
- .../rocblas/library/src/include/utility.hpp | 9 +++
- .../rocblas/library/src/rocblas_auxiliary.cpp | 55 +++++++++++++++++++
- 2 files changed, 64 insertions(+)
+ .../rocblas/library/src/include/utility.hpp | 6 ++
+ .../rocblas/library/src/rocblas_auxiliary.cpp | 57 +++++++++++++++++++
+ 2 files changed, 63 insertions(+)
diff --git a/projects/rocblas/library/src/include/utility.hpp b/projects/rocblas/library/src/include/utility.hpp
-index 3ec82e012822..a9f7371b07c2 100644
+index b276fc021205..be390c6870be 100644
--- a/projects/rocblas/library/src/include/utility.hpp
+++ b/projects/rocblas/library/src/include/utility.hpp
-@@ -806,6 +806,15 @@ std::string rocblas_internal_get_arch_name(int device);
+@@ -806,6 +806,12 @@ std::string rocblas_internal_get_arch_name(int device);
// for internal use during testing, fetch arch name
ROCBLAS_INTERNAL_EXPORT std::string rocblas_internal_get_arch_name();
+// for internal use
-+std::string rocblas_internal_get_arch_name(int device);
-+
-+// for internal use
+ROCBLAS_INTERNAL_EXPORT std::string rocblas_internal_get_generic_arch_name();
+
+// for internal use
@@ -29,10 +33,10 @@ index 3ec82e012822..a9f7371b07c2 100644
std::string rocblas_internal_get_xnack_mode();
diff --git a/projects/rocblas/library/src/rocblas_auxiliary.cpp b/projects/rocblas/library/src/rocblas_auxiliary.cpp
-index 37a4bc5b097c..4524f19ed056 100644
+index 5d2ca1eef160..fdb23e7413db 100644
--- a/projects/rocblas/library/src/rocblas_auxiliary.cpp
+++ b/projects/rocblas/library/src/rocblas_auxiliary.cpp
-@@ -908,6 +908,61 @@ std::string rocblas_internal_get_arch_name()
+@@ -988,6 +988,63 @@ std::string rocblas_internal_get_arch_name()
return rocblas_internal_get_arch_name(deviceId);
}
@@ -70,6 +74,8 @@ index 37a4bc5b097c..4524f19ed056 100644
+ {"gfx1151", "gfx11-generic"},
+ {"gfx1152", "gfx11-generic"},
+ {"gfx1153", "gfx11-generic"},
++ {"gfx1170", "gfx11-generic"},
++ {"gfx1171", "gfx11-generic"},
+ {"gfx1200", "gfx12-generic"},
+ {"gfx1201", "gfx12-generic"},
+ {"gfx1250", "gfx12-generic"},
@@ -95,5 +101,5 @@ index 37a4bc5b097c..4524f19ed056 100644
std::string rocblas_internal_get_xnack_mode()
{
--
-2.53.0
+2.56.1
diff --git a/0006-rocblas-generalize-finding-tensile-for-generics.patch b/0006-rocblas-generalize-finding-tensile-for-generics.patch
index 265ae85..714453e 100644
--- a/0006-rocblas-generalize-finding-tensile-for-generics.patch
+++ b/0006-rocblas-generalize-finding-tensile-for-generics.patch
@@ -1,130 +1,186 @@
-From 9839138308b7bb8972c1e57b63614fe3fd164908 Mon Sep 17 00:00:00 2001
+From c6e2dae72bfeb3a1a2bb8b04ddecbc17fb80152e Mon Sep 17 00:00:00 2001
From: Tom Rix <Tom.Rix@amd.com>
-Date: Sun, 29 Mar 2026 11:03:43 -0700
-Subject: [PATCH 6/6] rocblas generalize finding tensile for generics
+Date: Wed, 18 Nov 2026 16:18:57 -0800
+Subject: [PATCH 6/6] [rocblas] generalize finding tensile for generics
+If rocblas is built with ex/ gfx11-generic it should run on any
+gfx11XX gpu. So when finding the tensile library, check first
+the specific gpu, then the generic gpu.
+
+Loop over the specific and generic arch catalog keys, probing
+subdirectories and library files as before, and only report the
+error and abort if neither arch has a Tensile library.
+
+Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
- projects/rocblas/library/src/tensile_host.cpp | 76 +++++++++++--------
- 1 file changed, 44 insertions(+), 32 deletions(-)
+ projects/rocblas/library/src/tensile_host.cpp | 127 ++++++++++--------
+ 1 file changed, 71 insertions(+), 56 deletions(-)
diff --git a/projects/rocblas/library/src/tensile_host.cpp b/projects/rocblas/library/src/tensile_host.cpp
-index d36f686cfeff..d2e8c1bf5708 100644
+index a0bf6c81679a..f81987eb6fbb 100644
--- a/projects/rocblas/library/src/tensile_host.cpp
+++ b/projects/rocblas/library/src/tensile_host.cpp
-@@ -813,12 +813,21 @@ namespace
- #endif
+@@ -864,89 +864,104 @@ namespace
// The name of the current GPU platform
-- std::string processor = rocblas_internal_get_arch_name(deviceId);
-+ std::string specific_processor = rocblas_internal_get_arch_name(deviceId);
-+ std::string generic_processor = rocblas_internal_get_generic_arch_name(deviceId);
-+ std::string processors[2] = {specific_processor, generic_processor};
-+ std::string processor;
+ std::string processor = rocblas_internal_get_arch_name(deviceId);
++ // When no Tensile library is found for the specific arch, fall back
++ // to the generic arch (ex/ gfx1153 -> gfx11-generic)
++ std::string generic_processor = rocblas_internal_get_generic_arch_name(deviceId);
++ std::vector<std::string> processor_candidates{processor};
++ if(generic_processor != processor)
++ processor_candidates.push_back(generic_processor);
static std::string base_path;
static int determined_path{determine_tensile_base_path(base_path)};
+- // The device predicate name stays `processor` (matches the physical
+- // device for Tensile solution selection); the catalog key may diverge
+- // to select the strict device library by GPU revision. The strict
+- // variant is the base arch with a "-strict" suffix.
+- std::string catalog_key = processor;
+- std::string strict_catalog = processor + "-strict";
+- if(rocblas_internal_is_strict_target(deviceId)
+- && TestPath(base_path + "/" + strict_catalog))
++ std::string catalog_key;
++ for(size_t i = 0; i < processor_candidates.size(); ++i)
+ {
+- catalog_key = strict_catalog;
+- }
++ // The device predicate name stays `processor` (matches the physical
++ // device for Tensile solution selection); the catalog key may diverge
++ // to select the strict device library by GPU revision. The strict
++ // variant is the base arch with a "-strict" suffix.
++ catalog_key = processor_candidates[i];
++ std::string strict_catalog = catalog_key + "-strict";
++ if(rocblas_internal_is_strict_target(deviceId)
++ && TestPath(base_path + "/" + strict_catalog))
++ {
++ catalog_key = strict_catalog;
++ }
+
- path = base_path;
-+ // Loop over processors to find a valid Tensile library
-+ // Only call rocblas_abort on the final processor
-+ for(int i = 0; i < 2; ++i)
-+ {
-+ processor = processors[i];
+- // Probe subdirectories from most-specific to least-specific so that shard
+- // overlays compose correctly regardless of how TheRock splits arch builds:
+- // 1. library/<arch>-<xnack>/ – split single-xnack-variant shard
+- // 2. library/<arch>/ – combined xnack or no-xnack single-arch shard
+- // 3. library/ – flat multi-arch build (no subdir)
+- bool found_subdir = false;
+- std::string xnack_mode = rocblas_internal_get_xnack_mode();
+- if(!xnack_mode.empty())
+- {
+- std::string processor_xnack = catalog_key + "-" + xnack_mode;
+- if(TestPath(path + "/" + processor_xnack))
++ tensile_lazy_load_enabled = true;
+
-+ path = base_path;
- // Probe subdirectories from most-specific to least-specific so that shard
- // overlays compose correctly regardless of how TheRock splits arch builds:
- // 1. library/<arch>-<xnack>/ – split single-xnack-variant shard
-@@ -836,56 +845,59 @@ namespace
++ path = base_path;
++ // Probe subdirectories from most-specific to least-specific so that shard
++ // overlays compose correctly regardless of how TheRock splits arch builds:
++ // 1. library/<arch>-<xnack>/ – split single-xnack-variant shard
++ // 2. library/<arch>/ – combined xnack or no-xnack single-arch shard
++ // 3. library/ – flat multi-arch build (no subdir)
++ bool found_subdir = false;
++ std::string xnack_mode = rocblas_internal_get_xnack_mode();
++ if(!xnack_mode.empty())
+ {
+- path += "/" + processor_xnack;
+- found_subdir = true;
++ std::string processor_xnack = catalog_key + "-" + xnack_mode;
++ if(TestPath(path + "/" + processor_xnack))
++ {
++ path += "/" + processor_xnack;
++ found_subdir = true;
++ }
}
- }
- if(!found_subdir && TestPath(path + "/" + processor))
-- path += "/" + processor;
-+ path += "/" + processor;
+- }
+- if(!found_subdir && TestPath(path + "/" + catalog_key))
+- path += "/" + catalog_key;
++ if(!found_subdir && TestPath(path + "/" + catalog_key))
++ path += "/" + catalog_key;
#ifdef TENSILE_YAML
-- tensileLibraryPath = path + "/TensileLibrary_lazy_" + processor + ".yaml";
-+ tensileLibraryPath = path + "/TensileLibrary_lazy_" + processor + ".yaml";
+- tensileLibraryPath = path + "/TensileLibrary_lazy_" + catalog_key + ".yaml";
++ tensileLibraryPath = path + "/TensileLibrary_lazy_" + catalog_key + ".yaml";
#else
-- tensileLibraryPath = path + "/TensileLibrary_lazy_" + processor + ".dat";
-+ tensileLibraryPath = path + "/TensileLibrary_lazy_" + processor + ".dat";
+- tensileLibraryPath = path + "/TensileLibrary_lazy_" + catalog_key + ".dat";
++ tensileLibraryPath = path + "/TensileLibrary_lazy_" + catalog_key + ".dat";
#endif
- if(!TestPath(tensileLibraryPath))
- {
- tensile_lazy_load_enabled = false;
-+ if(TestPath(tensileLibraryPath)) {
-+ tensile_lazy_load_enabled = true;
-+ break;
-+ }
++ if(TestPath(tensileLibraryPath))
++ break;
++ tensile_lazy_load_enabled = false;
#ifdef TENSILE_YAML
- tensileLibraryPath = path + "/TensileLibrary_" + processor + ".yaml";
+ tensileLibraryPath = path + "/TensileLibrary_" + catalog_key + ".yaml";
#else
- tensileLibraryPath = path + "/TensileLibrary_" + processor + ".dat";
+ tensileLibraryPath = path + "/TensileLibrary_" + catalog_key + ".dat";
#endif
- if(!TestPath(tensileLibraryPath))
- {
-+ if(TestPath(tensileLibraryPath))
-+ break;
++ if(TestPath(tensileLibraryPath))
++ break;
+
#ifdef TENSILE_YAML
- tensileLibraryPath = path + "/TensileLibrary.yaml";
-+ tensileLibraryPath = path + "/TensileLibrary.yaml";
++ tensileLibraryPath = path + "/TensileLibrary.yaml";
#else
- tensileLibraryPath = path + "/TensileLibrary.dat";
-+ tensileLibraryPath = path + "/TensileLibrary.dat";
++ tensileLibraryPath = path + "/TensileLibrary.dat";
#endif
- if(!TestPath(tensileLibraryPath))
- {
-+ if(TestPath(tensileLibraryPath))
-+ break;
++ if(TestPath(tensileLibraryPath))
++ break;
++
++ // Try the next (generic) arch before giving up
++ if(i + 1 < processor_candidates.size())
++ continue;
+
#if ROCBLAS_TENSILE_SEPARATE_ARCH
- rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
- << ": " << strerror(errno) << " for GPU arch : " << processor
- << std::endl;
-+ rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
-+ << ": " << strerror(errno) << " for GPU arch : " << processor
-+ << std::endl;
++ rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
++ << ": " << strerror(errno) << " for GPU arch : " << processor_candidates[i]
++ << std::endl;
#if ROCBLAS_TENSILE_LAZY_LOAD
- std::regex fileMatcher(path + "/TensileLibrary_lazy.*");
-+ std::regex fileMatcher(path + "/TensileLibrary_lazy.*");
++ std::regex fileMatcher(path + "/TensileLibrary_lazy.*");
#else
- std::regex fileMatcher(path + "/TensileLibrary_gfx\\d+.dat");
-+ std::regex fileMatcher(path + "/TensileLibrary_gfx\\d+.dat");
++ std::regex fileMatcher(path + "/TensileLibrary_gfx\\d+.dat");
#endif
- rocblas_cerr << " List of available TensileLibrary Files : " << std::endl;
- for(auto& file_name : fs::directory_iterator(path))
- {
- if(std::regex_match(file_name.path().string(), fileMatcher))
- {
-+ rocblas_cerr << " List of available TensileLibrary Files : " << std::endl;
-+ for(auto& file_name : fs::directory_iterator(path))
-+ {
-+ if(std::regex_match(file_name.path().string(), fileMatcher))
-+ {
- rocblas_cerr << file_name << std::endl;
+- rocblas_cerr << file_name << std::endl;
- }
- }
-+ }
-+ }
- #else
+-#else
- rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
- << ": " << strerror(errno) << std::endl;
-+ rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
-+ << ": " << strerror(errno) << std::endl;
- #endif
+-#endif
- rocblas_abort();
-- }
-- }
-- }
-+
-+ if (i == 1)
-+ rocblas_abort();
-+ }
++ rocblas_cerr << " List of available TensileLibrary Files : " << std::endl;
++ for(auto& file_name : fs::directory_iterator(path))
++ {
++ if(std::regex_match(file_name.path().string(), fileMatcher))
++ {
++ rocblas_cerr << file_name << std::endl;
+ }
+ }
++#else
++ rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
++ << ": " << strerror(errno) << std::endl;
++#endif
++ rocblas_abort();
+ }
// Supports multi architecture configuration
- static int initialize_once = [&] {
--
-2.53.0
+2.56.1
diff --git a/preview/0001-tensile-improve-the-warning-for-asm-caps-mismatches.patch b/preview/0001-tensile-improve-the-warning-for-asm-caps-mismatches.patch
deleted file mode 100644
index 453adc3..0000000
--- a/preview/0001-tensile-improve-the-warning-for-asm-caps-mismatches.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 4953fce2ed3979eccead9706773eab9ead3a3d8a Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Wed, 18 Nov 2026 15:45:00 -0800
-Subject: [PATCH 1/6] [tensile] improve the warning for asm caps mismatches
-
-This change prints out the different keys/value pairs when there is
-a difference between the derived and cached asm tables.
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- shared/tensile/Tensile/Common.py | 9 +++++++++
- 1 file changed, 9 insertions(+)
-
-diff --git a/shared/tensile/Tensile/Common.py b/shared/tensile/Tensile/Common.py
-index 5514b9ed1977..c32dd71ed4f3 100644
---- a/shared/tensile/Tensile/Common.py
-+++ b/shared/tensile/Tensile/Common.py
-@@ -2098,6 +2098,14 @@ def locateExe( defaultPath, exeName ): # /opt/rocm/bin, hip-clang
- return exePath
- return None
-
-+def PrintDiff(d1, d2):
-+ keys = set(d1.keys() | d2.keys())
-+ for key in keys:
-+ v1 = d1.get(key)
-+ v2 = d2.get(key)
-+ if v1 != v2:
-+ printWarning(f"{key}: {v1} != {v2}")
-+
- def GetAsmCaps(isaVersion: IsaVersion, hipVersion: SemanticVersion, cachedAsmCaps: Dict[IsaVersion, dict]) -> Dict[IsaVersion, dict]:
- """ Determine assembler capabilities by testing short instructions sequences """
- if globalParameters["AssemblerPath"] is not None:
-@@ -2227,6 +2235,7 @@ def GetAsmCaps(isaVersion: IsaVersion, hipVersion: SemanticVersion, cachedAsmCap
- exitFlag = True
- if exitFlag:
- printWarning("Cached asm caps differ from derived asm caps for {}".format(isaVersion))
-+ PrintDiff(derivedAsmCaps, cachedAsmCaps[isaVersion])
- return derivedAsmCaps
- else:
- printWarning("Assembler not present, asm caps loaded from cache are unverified")
---
-2.56.1
-
diff --git a/preview/0002-tensile-add-generic-gpu-targets.patch b/preview/0002-tensile-add-generic-gpu-targets.patch
deleted file mode 100644
index a42a5c2..0000000
--- a/preview/0002-tensile-add-generic-gpu-targets.patch
+++ /dev/null
@@ -1,605 +0,0 @@
-From 447f4f87eb0635ea2a591046dccbd8fccc114e9e Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Wed, 18 Nov 2026 16:07:49 -0800
-Subject: [PATCH 2/6] [tensile] add generic gpu targets
-
-To support generic gpu targets ex/ -DGPU_TARGETS=gfx11-generic.
-
-Tensile does not have support for every possible gpu target. Instead
-of adding them piecemeal, provide support for all the generic targets.
-
-In Common.py overload int tuple for SupportedISA, where if the last
-value is negative, then this is a generic isa.
-Ex
- (10,3,-1) -> gfx10-3-generic
- (11,0,-1) -> gfx11-generic
-
-In AsmCaps, cut-n-paste generic tables from a close existing table.
-ex/ (10,3,0) was used for (10,3,-1). Then fix the values based on
-the derived vs cached warnings during a build.
-
-The (11,0,-1) and (12,0,-1) tables keep VOP3v_dot4_i32_i8 False in
-the base cache and enable it in the v19_diff overlay, matching how
-the specific gfx11/gfx12 ISAs are handled in this tree.
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- shared/tensile/Tensile/AsmCaps.py | 268 +++++++++++++++++-
- shared/tensile/Tensile/Common.py | 53 +++-
- .../cmake/TensileSupportedArchitectures.cmake | 6 +
- .../Source/lib/include/Tensile/AMDGPU.hpp | 44 ++-
- .../include/Tensile/PlaceholderLibrary.hpp | 18 ++
- 5 files changed, 375 insertions(+), 14 deletions(-)
-
-diff --git a/shared/tensile/Tensile/AsmCaps.py b/shared/tensile/Tensile/AsmCaps.py
-index 465466672b5f..9c32e203c0ae 100644
---- a/shared/tensile/Tensile/AsmCaps.py
-+++ b/shared/tensile/Tensile/AsmCaps.py
-@@ -169,6 +169,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (9, 0, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': False,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': False,
-+ 'v_dot2c_f32_f16': False,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': False,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': False,
-+ 'v_mac_f16': True,
-+ 'v_mac_f32': True,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (9, 0, 6): {'HasAddLshl': True,
- 'HasAtomicAdd': False,
- 'HasDirectToLdsDest': False,
-@@ -389,6 +433,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': True,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (9, 4, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': False,
-+ 'HasGLCModifier': False,
-+ 'HasNTModifier': True,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': True,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': True,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': True,
-+ 'HasMFMA_f64': True,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': True,
-+ 'HasMFMA_vgpr': True,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': True,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': True,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': True,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': True,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (9, 5, 0): {'HasAddLshl': True,
- 'HasAtomicAdd': True,
- 'HasDirectToLdsDest': False,
-@@ -565,6 +653,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (10, 1, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': False,
-+ 'v_dot2c_f32_f16': False,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': True,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (10, 3, 0): {'HasAddLshl': True,
- 'HasAtomicAdd': False,
- 'HasDirectToLdsDest': False,
-@@ -873,6 +1005,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (10, 3, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': True,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': True,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': True,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (11, 0, 0): {'HasAddLshl': True,
- 'HasAtomicAdd': True,
- 'HasDirectToLdsDest': False,
-@@ -1049,6 +1225,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (11, 0, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': True,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': True,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': True,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': True,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (11, 5, 0): {'HasAddLshl': True,
- 'HasAtomicAdd': True,
- 'HasDirectToLdsDest': False,
-@@ -1401,6 +1621,50 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- 'v_mov_b64': False,
- 'v_pk_fma_f16': True,
- 'v_pk_fmac_f16': False},
-+ (12, 0, -1): {'HasAddLshl': True,
-+ 'HasAtomicAdd': False,
-+ 'HasDirectToLdsDest': False,
-+ 'HasDirectToLdsNoDest': False,
-+ 'HasExplicitCO': True,
-+ 'HasExplicitNC': True,
-+ 'HasGLCModifier': False,
-+ 'HasNTModifier': False,
-+ 'HasLshlOr': True,
-+ 'HasMFMA': False,
-+ 'HasMFMA_b8': False,
-+ 'HasMFMA_bf16_1k': False,
-+ 'HasMFMA_bf16_original': False,
-+ 'HasMFMA_constSrc': False,
-+ 'HasMFMA_f64': False,
-+ 'HasMFMA_f8': False,
-+ 'HasMFMA_i8_908': False,
-+ 'HasMFMA_i8_940': False,
-+ 'HasMFMA_vgpr': False,
-+ 'HasMFMA_xf32': False,
-+ 'HasSMulHi': True,
-+ 'HasWMMA': False,
-+ 'KernargPreloading': False,
-+ 'MaxLgkmcnt': 15,
-+ 'MaxVmcnt': 63,
-+ 'SupportedISA': True,
-+ 'SupportedSource': True,
-+ 'VOP3v_dot4_i32_i8': False,
-+ 'v_dot2_f32_f16': True,
-+ 'v_dot2c_f32_f16': False,
-+ 'v_dot4_i32_i8': False,
-+ 'v_dot4c_i32_i8': False,
-+ 'v_fma_f16': True,
-+ 'v_fma_f32': True,
-+ 'v_fma_f64': True,
-+ 'v_fma_mix_f32': True,
-+ 'v_fmac_f16': False,
-+ 'v_fmac_f32': True,
-+ 'v_mac_f16': False,
-+ 'v_mac_f32': False,
-+ 'v_mad_mix_f32': False,
-+ 'v_mov_b64': False,
-+ 'v_pk_fma_f16': True,
-+ 'v_pk_fmac_f16': False},
- (12, 5, 0): {'HasAddLshl': True,
- 'HasAtomicAdd': False,
- 'HasDirectToLdsDest': False,
-@@ -1456,6 +1720,7 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- (11, 0, 1): {'VOP3v_dot4_i32_i8': True},
- (11, 0, 2): {'VOP3v_dot4_i32_i8': True},
- (11, 0, 3): {'VOP3v_dot4_i32_i8': True},
-+ (11, 0, -1): {'VOP3v_dot4_i32_i8': True},
- (11, 5, 0): {'VOP3v_dot4_i32_i8': True},
- (11, 5, 1): {'VOP3v_dot4_i32_i8': True},
- (11, 5, 2): {'VOP3v_dot4_i32_i8': True},
-@@ -1463,7 +1728,8 @@ def getCapabilitiesCache(rocmVersion: NamedTuple) -> dict:
- (11, 7, 0): {'VOP3v_dot4_i32_i8': True},
- (11, 7, 1): {'VOP3v_dot4_i32_i8': True},
- (12, 0, 0): {'VOP3v_dot4_i32_i8': True},
-- (12, 0, 1): {'VOP3v_dot4_i32_i8': True}}
-+ (12, 0, 1): {'VOP3v_dot4_i32_i8': True},
-+ (12, 0, -1): {'VOP3v_dot4_i32_i8': True}}
-
- nested_update_(cachedAsmCaps, v19_diff)
-
-diff --git a/shared/tensile/Tensile/Common.py b/shared/tensile/Tensile/Common.py
-index c32dd71ed4f3..6a49f55a5ea3 100644
---- a/shared/tensile/Tensile/Common.py
-+++ b/shared/tensile/Tensile/Common.py
-@@ -331,12 +331,12 @@ globalParameters["NumMergedFiles"] = 1 # The number of files that ker
-
- globalParameters["MaxFileName"] = 64 # If a file name would be longer than this, shorten it with a hash.
- globalParameters["SupportedISA"] = [(8,0,3),
-- (9,0,0), (9,0,6), (9,0,8), (9,0,10), (9,0,12),
-- (9,4,2), (9,5,0),
-- (10,1,0), (10,1,1), (10,1,2), (10,3,0), (10,3,1), (10,3,2), (10,3,3), (10,3,4), (10,3,5), (10,3,6),
-- (11,0,0), (11,0,1), (11,0,2), (11,0,3),
-+ (9,0,0), (9,0,6), (9,0,8), (9,0,10), (9,0,12), (9,0,-1),
-+ (9,4,2), (9,4,-1), (9,5,0),
-+ (10,1,0), (10,1,1), (10,1,2), (10,1,-1), (10,3,0), (10,3,1), (10,3,2), (10,3,3), (10,3,4), (10,3,5), (10,3,6), (10,3,-1),
-+ (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,0,-1),
- (11,5,0), (11,5,1), (11,5,2), (11,5,3), (11,7,0), (11,7,1),
-- (12,0,0), (12,0,1), (12,5,0)] # assembly kernels writer supports these architectures
-+ (12,0,0), (12,0,1), (12,5,0), (12,0,-1)] # assembly kernels writer supports these architectures
-
- globalParameters["KeepBuildTmp"] = True # Do not remove build artifacts during the build process or build_tmp after build completes
- globalParameters["GenerateManifestAndExit"] = False # Output manifest file with list of expected library objects and exit
-@@ -405,16 +405,16 @@ architectureMap = {
- 'gfx803':'r9nano', 'gfx900':'vega10', 'gfx900:xnack-':'vega10', 'gfx90c':'vega10',
- 'gfx906':'vega20', 'gfx906:xnack+':'vega20', 'gfx906:xnack-':'vega20',
- 'gfx908':'arcturus','gfx908:xnack+':'arcturus', 'gfx908:xnack-':'arcturus',
-- 'gfx90a':'aldebaran', 'gfx90a:xnack+':'aldebaran', 'gfx90a:xnack-':'aldebaran',
-- 'gfx942':'aquavanjaram942', 'gfx942:xnack+':'aquavanjaram942', 'gfx942:xnack-':'aquavanjaram942',
-+ 'gfx90a':'aldebaran', 'gfx90a:xnack+':'aldebaran', 'gfx90a:xnack-':'aldebaran', 'gfx9-generic':'gfx9-generic',
-+ 'gfx942':'aquavanjaram942', 'gfx942:xnack+':'aquavanjaram942', 'gfx942:xnack-':'aquavanjaram942', 'gfx9-4-generic':'gfx9-4-generic',
- 'gfx950':'gfx950', 'gfx950:xnack+':'gfx950', 'gfx950:xnack-':'gfx950',
-- 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14',
-- 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1033':'van gogh', 'gfx1034':'navi24', 'gfx1035':'rembrandt', 'gfx1036':'raphael',
-- 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103',
-+ 'gfx1010':'navi10', 'gfx1011':'navi12', 'gfx1012':'navi14', 'gfx10-1-generic':'gfx10-1-generic',
-+ 'gfx1030':'navi21', 'gfx1031':'navi22', 'gfx1032':'navi23', 'gfx1033':'van gogh', 'gfx1034':'navi24', 'gfx1035':'rembrandt', 'gfx1036':'raphael', 'gfx10-3-generic':'gfx10-3-generic',
-+ 'gfx1100':'navi31', 'gfx1101':'navi32', 'gfx1102':'navi33', 'gfx1103':'gfx1103', 'gfx11-generic':'gfx11-generic',
- 'gfx1150':'strixpoint', 'gfx1151':'strixhalo', 'gfx1152':'gfx1152', 'gfx1153':'gfx1153',
- 'gfx1170':'gfx1170', 'gfx1171':'gfx1171',
- 'gfx1200':'gfx1200',
-- 'gfx1201':'gfx1201',
-+ 'gfx1201':'gfx1201', 'gfx12-generic':'gfx12-generic',
- 'gfx1250':'gfx1250',
- 'gfx1250-strict':'gfx1250'
- }
-@@ -2296,6 +2296,21 @@ def tryAssembler(isaVersion, asmString, debug=False, *options):
-
- def gfxArch(name: str) -> Optional[IsaVersion]:
- import re
-+
-+ # Handle special case for generic architectures like 'gfx10-3-generic'
-+ generic_match = re.search(r'gfx([0-9]+)-([0-9]+)-generic', name)
-+ if generic_match:
-+ major = int(generic_match.group(1))
-+ minor = int(generic_match.group(2))
-+ return (major, minor, -1) # step=-1 to indicate generic
-+
-+ # Handle special case for generic architectures like 'gfx11-generic'
-+ generic_match = re.search(r'gfx([0-9]+)-generic', name)
-+ if generic_match:
-+ major = int(generic_match.group(1))
-+ return (major, 0, -1) # step=-1 to indicate generic, minor=0
-+
-+ # Handle regular architectures like 'gfx900', 'gfx803' etc.
- match = re.search(r'gfx([0-9a-fA-F]{3,})', name)
- if not match: return None
-
-@@ -2330,6 +2345,20 @@ def compilerTarget(name):
-
-
- def gfxName(arch):
-+ # If arch[2] is negative, this is a generic target
-+ if arch[2] < 0:
-+ if arch[0] == 9:
-+ if arch[1] == 4:
-+ name = str(arch[0]) + '-' + str(arch[1]) + '-generic'
-+ else:
-+ name = str(arch[0]) + '-generic'
-+ elif arch[0] == 10:
-+ name = str(arch[0]) + '-' + str(arch[1]) + '-generic'
-+ else:
-+ name = str(arch[0]) + '-generic'
-+ return 'gfx' + name
-+
-+ # The normal case
- # convert last digit to hex because reasons
- name = str(arch[0]) + str(arch[1]) + ('%x' % arch[2])
- return compilerTarget('gfx' + ''.join(map(str,name)))
-@@ -2590,7 +2619,7 @@ def assignGlobalParameters( config, capabilitiesCache: Optional[dict] = None, *,
- if os.name == "nt":
- globalParameters["CurrentISA"] = (9,0,6)
- printWarning("Failed to detect ISA so forcing (gfx906) on windows")
-- isasWithDisabledHWMonitor = ((9,4,2), (9,5,0), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (12,0,0), (12,0,1))
-+ isasWithDisabledHWMonitor = ((9,0,-1), (9,4,2), (9,4,-1), (9,5,0), (10,1,-1), (10,3,-1), (11,0,0), (11,0,1), (11,0,2), (11,0,3), (11,5,0), (11,5,1), (11,5,2), (11,5,3), (11,0,-1), (12,0,0), (12,0,1), (12,0,-1))
- if globalParameters["CurrentISA"] in isasWithDisabledHWMonitor:
- isaString = ', '.join(map(gfxName, isasWithDisabledHWMonitor))
- printWarning(f"HardwareMonitor currently disabled for {isaString}")
-diff --git a/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake b/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-index 695e337005f4..bf533c30fac4 100644
---- a/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-+++ b/shared/tensile/Tensile/Source/cmake/TensileSupportedArchitectures.cmake
-@@ -36,11 +36,14 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx906"
- "gfx908"
- "gfx90a"
-+ "gfx9-generic"
- "gfx942"
-+ "gfx9-4-generic"
- "gfx950"
- "gfx1010"
- "gfx1011"
- "gfx1012"
-+ "gfx10-1-generic"
- "gfx1030"
- "gfx1031"
- "gfx1032"
-@@ -48,6 +51,7 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx1034"
- "gfx1035"
- "gfx1036"
-+ "gfx10-3-generic"
- "gfx1100"
- "gfx1101"
- "gfx1102"
-@@ -58,9 +62,11 @@ if(NOT BUILD_ADDRESS_SANITIZER)
- "gfx1153"
- "gfx1170"
- "gfx1171"
-+ "gfx11-generic"
- "gfx1200"
- "gfx1201"
- "gfx1250"
-+ "gfx12-generic"
- "gfx1250-strict")
-
- set(SUPPORTED_ARCHITECTURES ${BASE_ARCHITECTURES})
-diff --git a/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp b/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-index 96afc82dc92e..98a308acb12f 100644
---- a/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-+++ b/shared/tensile/Tensile/Source/lib/include/Tensile/AMDGPU.hpp
-@@ -85,7 +85,13 @@ namespace Tensile
- gfx1171 = 1171,
- gfx1200 = 1200,
- gfx1201 = 1201,
-- gfx1250 = 1250
-+ gfx1250 = 1250,
-+ gfx9_generic = -900,
-+ gfx9_4_generic = -940,
-+ gfx10_1_generic = -1010,
-+ gfx10_3_generic = -1030,
-+ gfx11_generic = -1100,
-+ gfx12_generic = -1200
- };
-
- static std::string toString(Processor p)
-@@ -154,6 +160,18 @@ namespace Tensile
- return "gfx1201";
- case AMDGPU::Processor::gfx1250:
- return "gfx1250";
-+ case AMDGPU::Processor::gfx9_generic:
-+ return "gfx9-generic";
-+ case AMDGPU::Processor::gfx9_4_generic:
-+ return "gfx9-4-generic";
-+ case AMDGPU::Processor::gfx10_1_generic:
-+ return "gfx10-1-generic";
-+ case AMDGPU::Processor::gfx10_3_generic:
-+ return "gfx10-3-generic";
-+ case AMDGPU::Processor::gfx11_generic:
-+ return "gfx11-generic";
-+ case AMDGPU::Processor::gfx12_generic:
-+ return "gfx12-generic";
- }
- return "";
- }
-@@ -284,6 +302,30 @@ namespace Tensile
- {
- return AMDGPU::Processor::gfx1250;
- }
-+ else if(deviceString.find("gfx9-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx9_generic;
-+ }
-+ else if(deviceString.find("gfx9-4-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx9_4_generic;
-+ }
-+ else if(deviceString.find("gfx10-1-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx10_1_generic;
-+ }
-+ else if(deviceString.find("gfx10-3-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx10_3_generic;
-+ }
-+ else if(deviceString.find("gfx11-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx11_generic;
-+ }
-+ else if(deviceString.find("gfx12-generic") != std::string::npos)
-+ {
-+ return AMDGPU::Processor::gfx12_generic;
-+ }
- else
- {
- return static_cast<AMDGPU::Processor>(0);
-diff --git a/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp b/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-index 7723c1a479c3..b28ab2cf4393 100644
---- a/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-+++ b/shared/tensile/Tensile/Source/lib/include/Tensile/PlaceholderLibrary.hpp
-@@ -70,6 +70,12 @@ namespace Tensile
- gfx1200,
- gfx1201,
- gfx1250,
-+ gfx9_generic,
-+ gfx9_4_generic,
-+ gfx10_1_generic,
-+ gfx10_3_generic,
-+ gfx11_generic,
-+ gfx12_generic,
- All
- };
-
-@@ -142,6 +148,18 @@ namespace Tensile
- return "TensileLibrary_*_gfx1201";
- case LazyLoadingInit::gfx1250:
- return "TensileLibrary_*_gfx1250";
-+ case LazyLoadingInit::gfx9_generic:
-+ return "TensileLibrary_*_gfx9-generic";
-+ case LazyLoadingInit::gfx9_4_generic:
-+ return "TensileLibrary_*_gfx9-4-generic";
-+ case LazyLoadingInit::gfx10_1_generic:
-+ return "TensileLibrary_*_gfx10-1-generic";
-+ case LazyLoadingInit::gfx10_3_generic:
-+ return "TensileLibrary_*_gfx10-3-generic";
-+ case LazyLoadingInit::gfx11_generic:
-+ return "TensileLibrary_*_gfx11-generic";
-+ case LazyLoadingInit::gfx12_generic:
-+ return "TensileLibrary_*_gfx12-generic";
- case LazyLoadingInit::None:
- return "";
- }
---
-2.56.1
-
diff --git a/preview/0003-tensile-improve-fallback-name-to-handle-generics.patch b/preview/0003-tensile-improve-fallback-name-to-handle-generics.patch
deleted file mode 100644
index 193eb4e..0000000
--- a/preview/0003-tensile-improve-fallback-name-to-handle-generics.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 4eb393eb86442ffb56d6c33034b8792363137d7e Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Wed, 18 Nov 2026 16:09:36 -0800
-Subject: [PATCH 3/6] [tensile] improve fallback name to handle generics
-
-The archName can be of the form gfx90a-xnack{+,-} and this function
-determines the fallback is gfx90a. However when the archName is
-a generic, ex gfx11-generic, the entire name must be used. So
-check if the name ends with -generic and skip splitting.
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- shared/tensile/Tensile/TensileCreateLibrary.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/shared/tensile/Tensile/TensileCreateLibrary.py b/shared/tensile/Tensile/TensileCreateLibrary.py
-index e5014d711a96..15662592527f 100644
---- a/shared/tensile/Tensile/TensileCreateLibrary.py
-+++ b/shared/tensile/Tensile/TensileCreateLibrary.py
-@@ -1002,7 +1002,8 @@ def addFallback(masterLibraries: Dict[str, MasterSolutionLibrary]) -> None:
- value.insert(masterLibraries["fallback"])
-
- for archName in archs:
-- archName = archName.split("-xnack", 1)[0]
-+ if not archName.endswith("-generic"):
-+ archName = archName.split("-xnack", 1)[0]
- if archName not in masterLibraries:
- tPrint(1, "Using fallback for arch: " + archName)
- masterLibraries[archName] = masterLibraries["fallback"]
---
-2.56.1
-
diff --git a/preview/0004-tensile-generic-arches-need-a-solution-index.patch b/preview/0004-tensile-generic-arches-need-a-solution-index.patch
deleted file mode 100644
index e2a0072..0000000
--- a/preview/0004-tensile-generic-arches-need-a-solution-index.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 3cc51a5c89464d5a15c592c8e70e0f932fd84412 Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Wed, 18 Nov 2026 16:09:36 -0800
-Subject: [PATCH 4/6] [tensile] generic arches need a solution index
-
-So there is no overlap with the regular gpu indices, pick
-a shift value that does not overlap.
-
-(9 << 29) >> 18 = 18432
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- shared/tensile/Tensile/SolutionLibrary.py | 9 +++++++--
- 1 file changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/shared/tensile/Tensile/SolutionLibrary.py b/shared/tensile/Tensile/SolutionLibrary.py
-index 0c7b6428d624..e7c4b7457737 100644
---- a/shared/tensile/Tensile/SolutionLibrary.py
-+++ b/shared/tensile/Tensile/SolutionLibrary.py
-@@ -255,7 +255,7 @@ class MasterSolutionLibrary:
- """Maps hex characters from gfx name to an index.
-
- Given a gfx name of the form gfx[0-9a-f]*, map the characters following
-- gfx from hex to int and left shift the integer by 18.
-+ gfx from hex to int and left shift the integer by 18 (or 29 for generic architectures).
-
- Args:
- architectureName: The gfx name (or fallback).
-@@ -273,7 +273,12 @@ class MasterSolutionLibrary:
- archString = re.search('(?<=gfx)[0-9a-f]*', architectureName)
- if archString is not None:
- archLiteral = archString.group(0)
-- archval = (int(archLiteral, 16) << 18)
-+ # Use left shift of 29 for generic architectures, 18 otherwise
-+ if architectureName.endswith("-generic"):
-+ shift_bits = 29
-+ else:
-+ shift_bits = 18
-+ archval = (int(archLiteral, 16) << shift_bits)
- # Check for duplicate architecture values
- if archval >= 0 and not archval in cls.ArchitectureSet:
- cls.ArchitectureSet.add(archval)
---
-2.56.1
-
diff --git a/preview/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch b/preview/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
deleted file mode 100644
index bcae8c0..0000000
--- a/preview/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
+++ /dev/null
@@ -1,105 +0,0 @@
-From 1e2b68d8a5387a90a3eef397d94925c2e10afa5b Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Wed, 18 Nov 2026 16:11:02 -0800
-Subject: [PATCH 5/6] [rocblas] add rocblas_internal_get_generic_arch_name
-
-A function similar to rocblas_internal_get_arch_name, returns the
-generic name for the arch. ex/ gfx1153 -> gfx11-generic.
-
-Used to fall back to a generic Tensile library when the specific
-arch does not have one.
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- .../rocblas/library/src/include/utility.hpp | 6 ++
- .../rocblas/library/src/rocblas_auxiliary.cpp | 57 +++++++++++++++++++
- 2 files changed, 63 insertions(+)
-
-diff --git a/projects/rocblas/library/src/include/utility.hpp b/projects/rocblas/library/src/include/utility.hpp
-index b276fc021205..be390c6870be 100644
---- a/projects/rocblas/library/src/include/utility.hpp
-+++ b/projects/rocblas/library/src/include/utility.hpp
-@@ -806,6 +806,12 @@ std::string rocblas_internal_get_arch_name(int device);
- // for internal use during testing, fetch arch name
- ROCBLAS_INTERNAL_EXPORT std::string rocblas_internal_get_arch_name();
-
-+// for internal use
-+ROCBLAS_INTERNAL_EXPORT std::string rocblas_internal_get_generic_arch_name();
-+
-+// for internal use
-+std::string rocblas_internal_get_generic_arch_name(int device);
-+
- // for internal use, fetch xnack mode
- std::string rocblas_internal_get_xnack_mode();
-
-diff --git a/projects/rocblas/library/src/rocblas_auxiliary.cpp b/projects/rocblas/library/src/rocblas_auxiliary.cpp
-index 5d2ca1eef160..fdb23e7413db 100644
---- a/projects/rocblas/library/src/rocblas_auxiliary.cpp
-+++ b/projects/rocblas/library/src/rocblas_auxiliary.cpp
-@@ -988,6 +988,63 @@ std::string rocblas_internal_get_arch_name()
- return rocblas_internal_get_arch_name(deviceId);
- }
-
-+std::string rocblas_internal_get_generic_arch_name(int deviceId)
-+{
-+ std::string arch_name = rocblas_internal_get_arch_name(deviceId);
-+ // Map specific architecture names to generic names
-+ static const std::map<std::string, std::string> arch_map = {
-+ {"gfx900", "gfx9-generic"},
-+ {"gfx902", "gfx9-generic"},
-+ {"gfx904", "gfx9-generic"},
-+ {"gfx906", "gfx9-generic"},
-+ {"gfx908", "gfx9-generic"},
-+ {"gfx909", "gfx9-generic"},
-+ {"gfx90a", "gfx9-generic"},
-+ {"gfx940", "gfx9-4-generic"},
-+ {"gfx941", "gfx9-4-generic"},
-+ {"gfx942", "gfx9-4-generic"},
-+ {"gfx1010", "gfx10-1-generic"},
-+ {"gfx1011", "gfx10-1-generic"},
-+ {"gfx1012", "gfx10-1-generic"},
-+ {"gfx1013", "gfx10-1-generic"},
-+ {"gfx1030", "gfx10-3-generic"},
-+ {"gfx1031", "gfx10-3-generic"},
-+ {"gfx1032", "gfx10-3-generic"},
-+ {"gfx1033", "gfx10-3-generic"},
-+ {"gfx1034", "gfx10-3-generic"},
-+ {"gfx1035", "gfx10-3-generic"},
-+ {"gfx1036", "gfx10-3-generic"},
-+ {"gfx1100", "gfx11-generic"},
-+ {"gfx1101", "gfx11-generic"},
-+ {"gfx1102", "gfx11-generic"},
-+ {"gfx1103", "gfx11-generic"},
-+ {"gfx1150", "gfx11-generic"},
-+ {"gfx1151", "gfx11-generic"},
-+ {"gfx1152", "gfx11-generic"},
-+ {"gfx1153", "gfx11-generic"},
-+ {"gfx1170", "gfx11-generic"},
-+ {"gfx1171", "gfx11-generic"},
-+ {"gfx1200", "gfx12-generic"},
-+ {"gfx1201", "gfx12-generic"},
-+ {"gfx1250", "gfx12-generic"},
-+ {"gfx1251", "gfx12-generic"}
-+ };
-+
-+ auto it = arch_map.find(arch_name);
-+ if(it != arch_map.end())
-+ return it->second;
-+
-+ // Return original name if no mapping found
-+ return arch_name;
-+}
-+
-+std::string rocblas_internal_get_generic_arch_name()
-+{
-+ int deviceId;
-+ PRINT_IF_HIP_ERROR(hipGetDevice(&deviceId));
-+ return rocblas_internal_get_generic_arch_name(deviceId);
-+}
-+
- // exported. Get xnack mode
- std::string rocblas_internal_get_xnack_mode()
- {
---
-2.56.1
-
diff --git a/preview/0006-rocblas-generalize-finding-tensile-for-generics.patch b/preview/0006-rocblas-generalize-finding-tensile-for-generics.patch
deleted file mode 100644
index 714453e..0000000
--- a/preview/0006-rocblas-generalize-finding-tensile-for-generics.patch
+++ /dev/null
@@ -1,186 +0,0 @@
-From c6e2dae72bfeb3a1a2bb8b04ddecbc17fb80152e Mon Sep 17 00:00:00 2001
-From: Tom Rix <Tom.Rix@amd.com>
-Date: Wed, 18 Nov 2026 16:18:57 -0800
-Subject: [PATCH 6/6] [rocblas] generalize finding tensile for generics
-
-If rocblas is built with ex/ gfx11-generic it should run on any
-gfx11XX gpu. So when finding the tensile library, check first
-the specific gpu, then the generic gpu.
-
-Loop over the specific and generic arch catalog keys, probing
-subdirectories and library files as before, and only report the
-error and abort if neither arch has a Tensile library.
-
-Signed-off-by: Tom Rix <Tom.Rix@amd.com>
----
- projects/rocblas/library/src/tensile_host.cpp | 127 ++++++++++--------
- 1 file changed, 71 insertions(+), 56 deletions(-)
-
-diff --git a/projects/rocblas/library/src/tensile_host.cpp b/projects/rocblas/library/src/tensile_host.cpp
-index a0bf6c81679a..f81987eb6fbb 100644
---- a/projects/rocblas/library/src/tensile_host.cpp
-+++ b/projects/rocblas/library/src/tensile_host.cpp
-@@ -864,89 +864,104 @@ namespace
-
- // The name of the current GPU platform
- std::string processor = rocblas_internal_get_arch_name(deviceId);
-+ // When no Tensile library is found for the specific arch, fall back
-+ // to the generic arch (ex/ gfx1153 -> gfx11-generic)
-+ std::string generic_processor = rocblas_internal_get_generic_arch_name(deviceId);
-+ std::vector<std::string> processor_candidates{processor};
-+ if(generic_processor != processor)
-+ processor_candidates.push_back(generic_processor);
-
- static std::string base_path;
- static int determined_path{determine_tensile_base_path(base_path)};
-
-- // The device predicate name stays `processor` (matches the physical
-- // device for Tensile solution selection); the catalog key may diverge
-- // to select the strict device library by GPU revision. The strict
-- // variant is the base arch with a "-strict" suffix.
-- std::string catalog_key = processor;
-- std::string strict_catalog = processor + "-strict";
-- if(rocblas_internal_is_strict_target(deviceId)
-- && TestPath(base_path + "/" + strict_catalog))
-+ std::string catalog_key;
-+ for(size_t i = 0; i < processor_candidates.size(); ++i)
- {
-- catalog_key = strict_catalog;
-- }
-+ // The device predicate name stays `processor` (matches the physical
-+ // device for Tensile solution selection); the catalog key may diverge
-+ // to select the strict device library by GPU revision. The strict
-+ // variant is the base arch with a "-strict" suffix.
-+ catalog_key = processor_candidates[i];
-+ std::string strict_catalog = catalog_key + "-strict";
-+ if(rocblas_internal_is_strict_target(deviceId)
-+ && TestPath(base_path + "/" + strict_catalog))
-+ {
-+ catalog_key = strict_catalog;
-+ }
-
-- path = base_path;
-- // Probe subdirectories from most-specific to least-specific so that shard
-- // overlays compose correctly regardless of how TheRock splits arch builds:
-- // 1. library/<arch>-<xnack>/ – split single-xnack-variant shard
-- // 2. library/<arch>/ – combined xnack or no-xnack single-arch shard
-- // 3. library/ – flat multi-arch build (no subdir)
-- bool found_subdir = false;
-- std::string xnack_mode = rocblas_internal_get_xnack_mode();
-- if(!xnack_mode.empty())
-- {
-- std::string processor_xnack = catalog_key + "-" + xnack_mode;
-- if(TestPath(path + "/" + processor_xnack))
-+ tensile_lazy_load_enabled = true;
-+
-+ path = base_path;
-+ // Probe subdirectories from most-specific to least-specific so that shard
-+ // overlays compose correctly regardless of how TheRock splits arch builds:
-+ // 1. library/<arch>-<xnack>/ – split single-xnack-variant shard
-+ // 2. library/<arch>/ – combined xnack or no-xnack single-arch shard
-+ // 3. library/ – flat multi-arch build (no subdir)
-+ bool found_subdir = false;
-+ std::string xnack_mode = rocblas_internal_get_xnack_mode();
-+ if(!xnack_mode.empty())
- {
-- path += "/" + processor_xnack;
-- found_subdir = true;
-+ std::string processor_xnack = catalog_key + "-" + xnack_mode;
-+ if(TestPath(path + "/" + processor_xnack))
-+ {
-+ path += "/" + processor_xnack;
-+ found_subdir = true;
-+ }
- }
-- }
-- if(!found_subdir && TestPath(path + "/" + catalog_key))
-- path += "/" + catalog_key;
-+ if(!found_subdir && TestPath(path + "/" + catalog_key))
-+ path += "/" + catalog_key;
-
- #ifdef TENSILE_YAML
-- tensileLibraryPath = path + "/TensileLibrary_lazy_" + catalog_key + ".yaml";
-+ tensileLibraryPath = path + "/TensileLibrary_lazy_" + catalog_key + ".yaml";
- #else
-- tensileLibraryPath = path + "/TensileLibrary_lazy_" + catalog_key + ".dat";
-+ tensileLibraryPath = path + "/TensileLibrary_lazy_" + catalog_key + ".dat";
- #endif
-- if(!TestPath(tensileLibraryPath))
-- {
-- tensile_lazy_load_enabled = false;
-+ if(TestPath(tensileLibraryPath))
-+ break;
-
-+ tensile_lazy_load_enabled = false;
- #ifdef TENSILE_YAML
- tensileLibraryPath = path + "/TensileLibrary_" + catalog_key + ".yaml";
- #else
- tensileLibraryPath = path + "/TensileLibrary_" + catalog_key + ".dat";
- #endif
-- if(!TestPath(tensileLibraryPath))
-- {
-+ if(TestPath(tensileLibraryPath))
-+ break;
-+
- #ifdef TENSILE_YAML
-- tensileLibraryPath = path + "/TensileLibrary.yaml";
-+ tensileLibraryPath = path + "/TensileLibrary.yaml";
- #else
-- tensileLibraryPath = path + "/TensileLibrary.dat";
-+ tensileLibraryPath = path + "/TensileLibrary.dat";
- #endif
-- if(!TestPath(tensileLibraryPath))
-- {
-+ if(TestPath(tensileLibraryPath))
-+ break;
-+
-+ // Try the next (generic) arch before giving up
-+ if(i + 1 < processor_candidates.size())
-+ continue;
-+
- #if ROCBLAS_TENSILE_SEPARATE_ARCH
-- rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
-- << ": " << strerror(errno) << " for GPU arch : " << processor
-- << std::endl;
-+ rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
-+ << ": " << strerror(errno) << " for GPU arch : " << processor_candidates[i]
-+ << std::endl;
- #if ROCBLAS_TENSILE_LAZY_LOAD
-- std::regex fileMatcher(path + "/TensileLibrary_lazy.*");
-+ std::regex fileMatcher(path + "/TensileLibrary_lazy.*");
- #else
-- std::regex fileMatcher(path + "/TensileLibrary_gfx\\d+.dat");
-+ std::regex fileMatcher(path + "/TensileLibrary_gfx\\d+.dat");
- #endif
-- rocblas_cerr << " List of available TensileLibrary Files : " << std::endl;
-- for(auto& file_name : fs::directory_iterator(path))
-- {
-- if(std::regex_match(file_name.path().string(), fileMatcher))
-- {
-- rocblas_cerr << file_name << std::endl;
-- }
-- }
--#else
-- rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
-- << ": " << strerror(errno) << std::endl;
--#endif
-- rocblas_abort();
-+ rocblas_cerr << " List of available TensileLibrary Files : " << std::endl;
-+ for(auto& file_name : fs::directory_iterator(path))
-+ {
-+ if(std::regex_match(file_name.path().string(), fileMatcher))
-+ {
-+ rocblas_cerr << file_name << std::endl;
- }
- }
-+#else
-+ rocblas_cerr << "\nrocBLAS error: Cannot read " << tensileLibraryPath
-+ << ": " << strerror(errno) << std::endl;
-+#endif
-+ rocblas_abort();
- }
-
- // Supports multi architecture configuration
---
-2.56.1
-
diff --git a/rocblas.spec b/rocblas.spec
index 7613b93..5103f46 100644
--- a/rocblas.spec
+++ b/rocblas.spec
@@ -28,7 +28,7 @@
%if %{with preview}
%global rocm_release 10.2
%else
-%global rocm_release 10.1
+%global rocm_release 10.2
%endif
%global rocm_patch 0
@@ -183,22 +183,12 @@ Release: 1%{?dist}
Source0: %{url}/releases/download/%{pkg_src}/%{upstreamname}.tar.gz#/%{upstreamname}-%{version}.tar.gz
Source1: %{url}/releases/download/%{pkg_src}/tensile.tar.gz#/tensile-%{version}.tar.gz
-%if %{with preview}
Patch1: 0001-tensile-improve-the-warning-for-asm-caps-mismatches.patch
Patch2: 0002-tensile-add-generic-gpu-targets.patch
Patch3: 0003-tensile-improve-fallback-name-to-handle-generics.patch
Patch4: 0004-tensile-generic-arches-need-a-solution-index.patch
Patch5: 0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
Patch6: 0006-rocblas-generalize-finding-tensile-for-generics.patch
-%else
-Patch1: 0001-improve-the-warning-for-asm-caps-mismatches.patch
-Patch2: 0002-add-generic-gpu-targets.patch
-Patch3: 0003-improve-fallback-name-to-handle-generics.patch
-Patch4: 0004-generic-arches-need-a-solution-index.patch
-Patch5: 0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
-Patch6: 0006-rocblas-generalize-finding-tensile-for-generics.patch
-Patch7: 0001-tensile-add-gfx1170.patch
-%endif
BuildRequires: chrpath
BuildRequires: cmake
@@ -368,18 +358,10 @@ Requires: diffutils
tar xf %{SOURCE1}
cd tensile
-%if %{with preview}
%patch -P1 -p3
%patch -P2 -p3
%patch -P3 -p3
%patch -P4 -p3
-%else
-%patch -P1 -p3
-%patch -P2 -p3
-%patch -P3 -p3
-%patch -P4 -p3
-%patch -P7 -p3
-%endif
#Fix a few things:
chmod 755 Tensile/Configs/miopen/convert_cfg.py
@@ -537,6 +519,9 @@ export LD_LIBRARY_PATH=%{_vpath_builddir}/library/src:$LD_LIBRARY_PATH
%endif
%changelog
+* Sat Nov 28 2026 Tom Rix <Tom.Rix@amd.com> - 10.2.0-1
+- Update to 10.2
+
* Fri Oct 9 2026 Tom Rix <Tom.Rix@amd.com> - 10.1.0-1
- Update to 10.1
diff --git a/sources b/sources
index 4fefbc6..d3288d0 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-SHA512 (rocblas-10.1.0.tar.gz) = c24e0acc4741b56440fe07ba1a11347dd3aaf03fe9b6a48a4a20d7699692e42be01dc3343e3e84ede01766be02446a17be2029ed4752589f57bd422280c4010c
-SHA512 (tensile-10.1.0.tar.gz) = 47245d56c2cb608103d94128fd8deb14636206f11293e556e3492c840317e39798507d2be052be76e53deafd5e251317d1e020845feb5d94989984a9c0d110a3
+SHA512 (rocblas-10.2.0.tar.gz) = 7d870fab3c73d53ba4262a9afe9d4b5c533f1f2b1b031cee8b750f6e03284c84b277f740650a4f53969ac13ef12244cbcc234606a90cd7bcb973992f2583dde7
+SHA512 (tensile-10.2.0.tar.gz) = ce88d6a750806ef521490e2edf8a797a24f7c0cb905e152fb3da046f8c9c98dc7cb1e27d4ef85bdeae6631c097e36d554c8cbe502558b52208b6050055d16af9
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-28 13:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-28 13:44 [rpms/rocblas] rawhide: Update to 10.2 Tom Rix
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox