public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rocblas] rawhide: Update preview to 10.2
@ 2026-11-21 13:57 Tom Rix
0 siblings, 0 replies; only message in thread
From: Tom Rix @ 2026-11-21 13:57 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rocblas
Branch : rawhide
Commit : 8ed97e15e196725cfbe2e104f6424d7ebe443381
Author : Tom Rix <Tom.Rix@amd.com>
Date : 2026-11-21T05:56:34-08:00
Stats : +1033/-1 in 7 file(s)
URL : https://src.fedoraproject.org/rpms/rocblas/c/8ed97e15e196725cfbe2e104f6424d7ebe443381?branch=rawhide
Log:
Update preview to 10.2
Signed-off-by: Tom Rix <Tom.Rix@amd.com>
---
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
new file mode 100644
index 0000000..453adc3
--- /dev/null
+++ b/preview/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/preview/0002-tensile-add-generic-gpu-targets.patch b/preview/0002-tensile-add-generic-gpu-targets.patch
new file mode 100644
index 0000000..a42a5c2
--- /dev/null
+++ b/preview/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/preview/0003-tensile-improve-fallback-name-to-handle-generics.patch b/preview/0003-tensile-improve-fallback-name-to-handle-generics.patch
new file mode 100644
index 0000000..193eb4e
--- /dev/null
+++ b/preview/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/preview/0004-tensile-generic-arches-need-a-solution-index.patch b/preview/0004-tensile-generic-arches-need-a-solution-index.patch
new file mode 100644
index 0000000..e2a0072
--- /dev/null
+++ b/preview/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/preview/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch b/preview/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
new file mode 100644
index 0000000..bcae8c0
--- /dev/null
+++ b/preview/0005-rocblas-add-rocblas_internal_get_generic_arch_name.patch
@@ -0,0 +1,105 @@
+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
new file mode 100644
index 0000000..714453e
--- /dev/null
+++ b/preview/0006-rocblas-generalize-finding-tensile-for-generics.patch
@@ -0,0 +1,186 @@
+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 8dbf84f..7613b93 100644
--- a/rocblas.spec
+++ b/rocblas.spec
@@ -26,7 +26,7 @@
%bcond_with preview
%if %{with preview}
-%global rocm_release 10.1
+%global rocm_release 10.2
%else
%global rocm_release 10.1
%endif
@@ -183,6 +183,14 @@ 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
@@ -190,6 +198,7 @@ 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
@@ -359,11 +368,18 @@ 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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-21 13:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-21 13:57 [rpms/rocblas] rawhide: Update preview 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