From 89ae08e67f47268b747441b38203092bbbdea111 Mon Sep 17 00:00:00 2001 From: Niko1221 Date: Tue, 6 Oct 2026 02:03:21 +0200 Subject: [PATCH] fix(hip): package_windows copies rocBLAS arch subfolders (the gfx1151 wheel's library/gfx1151/) instead of crashing --- tools/hip/package_windows.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/hip/package_windows.py b/tools/hip/package_windows.py index 12738f19..1ece8f0d 100644 --- a/tools/hip/package_windows.py +++ b/tools/hip/package_windows.py @@ -118,7 +118,10 @@ def main() -> int: for f in (rbin / "rocblas" / "library").iterdir(): m = re.search(r"gfx[0-9a-f]+", f.name) if m is None or m.group() in archs: - shutil.copy2(f, lib / f.name) + if f.is_dir(): # the gfx1151 wheel keeps its rocBLAS kernels in library/gfx1151/ + shutil.copytree(f, lib / f.name) + else: + shutil.copy2(f, lib / f.name) for arch in archs: src = rbin / "hipblaslt" / "library" / arch if src.is_dir(): # hipBLASLt has no RDNA2 (gfx1030) kernels