Bug 2362780 - amdgpu-arch fails
Summary: amdgpu-arch fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: rocm
Version: rawhide
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: ROCm Packagers SIG
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-28 19:37 UTC by Gabriel Baraldi
Modified: 2025-06-03 12:26 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-06-03 12:26:28 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Gabriel Baraldi 2025-04-28 19:37:49 UTC
Running amdgpu-arch (/usr/lib64/rocm/llvm/bin/amdgpu-arch) fails with 
Failed to 'dlopen' libhsa-runtime64.so
Failed to load libamdhip64.so: libamdhip64.so: cannot open shared object file: No such file or directory

Looking at the code in LLVM it seems it does a very naive lookup

Reproducible: Always

Steps to Reproduce:
1.run amdgpu-arch
2.
3.
Actual Results:
Failed to 'dlopen' libhsa-runtime64.so
Failed to load libamdhip64.so: libamdhip64.so: cannot open shared object file: No such file or directory

Expected Results:
It should print your local amdgpu arch

Comment 1 Tim Flink 2025-04-28 20:55:16 UTC
as a workaround, you can install rocm-hip-devel and rocm-runtime-devel to get the libraries it's looking for and the /usr/lib64/rocm/llvm/bin/amdgpu-arch binary should start working

Comment 2 Tom.Rix 2025-05-06 23:58:36 UTC
This is the problem in the upstream
https://github.com/ROCm/llvm-project/issues/269

Comment 3 Tom.Rix 2025-05-07 13:19:56 UTC
https://koji.fedoraproject.org/koji/taskinfo?taskID=132409596
For the fix.

Comment 4 Fedora Admin user for bugzilla script actions 2025-05-09 07:27:00 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.


Note You need to log in before you can comment on or make changes to this bug.