Bug 2362780

Summary: amdgpu-arch fails
Product: [Fedora] Fedora Reporter: Gabriel Baraldi <baraldigabriel>
Component: rocmAssignee: ROCm Packagers SIG <rocm-packagers-sig>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: rocm-packagers-sig, tflink, Tom.Rix
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-03 12:26:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.