fix(hip): package_windows copies rocBLAS arch subfolders (the gfx1151 wheel's library/gfx1151/) instead of crashing

This commit is contained in:
Niko1221 committed 2026-10-06 02:03:21 +02:00
1 parent c4a329fefe
commit 89ae08e67f
1 file changed
+4 -1
+4 -1
View File
@@ -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