Replies: 1 comment
|
Hi @atayozcan, Thanks for the request. I don't currently have any additional information on timelines, but I will convert this to a discussion where community members are welcome to collaborate. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
[Bug]: HSA Queue Creation Fails on ARM64 (aarch64) with RDNA3 GPU - "Queue create failed at hsaKmtCreateQueue"
Environment
Problem Description
HIP kernel execution fails with "HSA exception: Queue create failed at hsaKmtCreateQueue" on ARM64 (aarch64) platform with AMD RDNA3 GPU.
The KFD driver loads successfully, GPU is detected, memory allocation works, but compute queue creation fails at kernel launch time.
Steps to Reproduce
hip_embed_pch.shto use aarch64 aux-triple)HSA_OVERRIDE_GFX_VERSION=11.0.0 ./hip_testExpected Behavior
Kernel should execute on GPU.
Actual Behavior
The error
hipErrorSharedObjectInitFailedis returned fromhipLaunchKernel.What Works
rocminfocorrectly detects GPU (gfx1102, AMD Radeon RX 7600M XT)hipGetDeviceCount()returns 1hipSetDevice(0)succeedshipMalloc()succeeds - GPU memory allocation workskfd kfd: amdgpu: added device 1002:7480What Fails
hsaKmtCreateQueue- compute queue creation in KFDAdditional Context
Without HSA_OVERRIDE_GFX_VERSION
Without the gfx version override, the system hard-crashes (complete lockup requiring power cycle). With
HSA_OVERRIDE_GFX_VERSION=11.0.0, it fails gracefully with the queue error.Kernel IOMMU Configuration
Initially saw ARM SMMU faults:
Fixed by adding
iommu.passthrough=1kernel parameter. Queue creation still fails after this fix.Debug Output (AMD_LOG_LEVEL=4)
Analysis
The failure occurs in
hsaKmtCreateQueuewhich is in the ROCT-Thunk-Interface layer, calling into the KFD kernel driver. The KFD driver was patched to compile on ARM64 but queue creation logic may have x86-specific assumptions or missing ARM64 implementation.Related Issues
Request
Even if full ARM64 support isn't planned until the Fujitsu partnership (~2027), this specific technical finding about queue creation failure could help:
The infrastructure (KFD loading, device detection, memory allocation) works - the specific blocker is queue creation in ROCT/KFD.
All reactions