After upgrading from F39 to F40, rocm-smi was updated to 6.0.0. $ rpm -q rocm-smi-devel rocm-smi-devel-6.0.0-4.fc40.x86_64 This version is missing a typedef in rocm_smi/rocm_smi.h causing anything including this header to not compile with the error "error: unknown type name ‘metrics_table_header_t". This was fixed in a later version of ROCm (The 6.0.2 tag has the fix). The relevant github issue is https://github.com/ROCm/rocm_smi_lib/issues/147 This was fixed upsteam as part of https://github.com/ROCm/rocm_smi_lib/commit/0d13f6deea I ran into this trying to build Slurm with the rsmi plugin, but it is easy to show the error simply trying to compile anything including that header though. Thank you for your help, and let me know if there is any more information I can provide! --Tim Reproducible: Always Steps to Reproduce: 1. echo "#include <rocm_smi/rocm_smi.h>" >test.c 2. gcc ./test.c Actual Results: In file included from ./test.c:1: /usr/include/rocm_smi/rocm_smi.h:5370:51: error: unknown type name ‘metrics_table_header_t’ 5370 | rsmi_dev_metrics_header_info_get(uint32_t dv_ind, metrics_table_header_t* header_value); Expected Results: /usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/14/../../../../lib64/crt1.o: in function `_start': (.text+0x1b): undefined reference to `main' collect2: error: ld returned 1 exit status
Can you try out this scratch build ? https://koji.fedoraproject.org/koji/taskinfo?taskID=117033391 This updates the source to 6.0.2
I ran a test build with my "test program" and Slurm, everything is building correctly against the scratch build of rsmi 6.0.2. Thank you!
FEDORA-2024-169e2b4700 (rocm-smi-6.0.2-1.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-169e2b4700
FEDORA-2024-169e2b4700 has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-169e2b4700` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-169e2b4700 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-169e2b4700 (rocm-smi-6.0.2-1.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.