mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #574] Windows ROCm wheel setup: unnormalized long paths leave device-library links missing, causing rocBLAS crashes #235
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#235
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sakugetu on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/574
Summary
Native Windows setup with Maya v1.1.31 reached model loading, but generation crashed in rocBLAS with
0xC0000005. The installed ROCm wheel contained the required files; the SDK's generated development tree was missing most of its device-library links.This appears to be a TheRock SDK path-handling problem exposed by Maya's Windows wheel-install path, rather than a Maya kernel bug. Reporting it here because it can make a successful-looking setup unusable.
Environment
c4be54416a4f30a837c2fae91816dc9550d68b61gfx1151, 128 GB unified memory, 96 GB assigned to graphicsLongPathsEnabled=0, unchanged during diagnosis and repairWhat was observed
After
rocm-sdk init:_rocm_sdk_libraries/bin/rocblas/library/gfx1151contained 150 files._rocm_sdk_devel/bin/rocblas/library/gfx1151contained onlyKernels.so-000-gfx1151.hsacoandTensileLibrary_lazy_gfx1151.dat.TensileLibrary_Type_*files referenced by the lazy library were missing from the generated tree.rocblas.dllwithctypes.CDLLand callingrocblas_initialize()crashed with the default lookup and withROCBLAS_TENSILE_LIBPATHpointing to the incomplete devel directory._rocm_sdk_libraries/.../gfx1151directory made the probe exit successfully. The failing stack was aroundTensile::LoadLibraryFilePreload.In the installed SDK's
rocm_sdk/_devel.py, a link target assembled asdest_path.parent / "../../../../../..."was checked without normalization. For one real file, the unnormalized path was 282 characters and its existence check returned false; resolving it produced a 223-character path and returned true. The two files that did get linked had shorter unnormalized paths (226–229 characters).Workaround validated locally
Two expressions in the installed SDK were normalized before checking/using the target:
Then
rocm-sdk initwas run again. All 254 device-manifest links were checked against their source files, and the rocBLAS directory had all 150 files. The default-path rocBLAS probe passed. A separate hipBLASLt initialization crash seen with the partial workaround also stopped after the full link repair.No driver update, Windows long-path setting change or other OS change was needed. Merely redirecting rocBLAS was not enough because other SDK libraries had missing links too.
Suggested handling
I have not validated current TheRock main or other GPUs. Maya's Windows support PR #69 noted that the wheel path had not been exercised in that test. There was also a separate HIP Release-flags issue after the failed initial configure; repairing these SDK links alone fixed the crashes, not the remaining extreme slowness.