Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for ROCm SMI #143

Merged
merged 3 commits into from
Dec 20, 2023
Merged

Conversation

gcongiu
Copy link
Contributor

@gcongiu gcongiu commented Dec 19, 2023

Pull Request Description

ROCm 6.0.0 causes the build process to fail with an error due to a bug in the rocm_smi header. The sysdetect component is always built by default in PAPI and it uses the rocm_smi headers when these are available through the PAPI_ROCM_ROOT environment variable. This PR isolates the problem to the rocm_smi component by looking for the headers in PAPI_ROCMSMI_ROOT instead. The reason PAPI_ROCM_ROOT was used previously is that the rocm_smi headers are normally installed under the same rocm installation directory as other packages (e.g. HSA and Rocprofiler).

Author Checklist

  • Description
    Why this PR exists. Reference all relevant information, including background, issues, test failures, etc
  • Commits
    Commits are self contained and only do one thing
    Commits have a header of the form: module: short description
    Commits have a body (whenever relevant) containing a detailed description of the addressed problem and its solution
  • Tests
    The PR needs to pass all the tests

@gcongiu gcongiu force-pushed the 2023.12.19_rocm-smi-fix branch 2 times, most recently from e8257dc to fea07e8 Compare December 19, 2023 17:56
@gcongiu gcongiu requested a review from adanalis December 20, 2023 08:13
The configure script used to search for rocm_smi headers in
PAPI_ROCM_ROOT instead of PAPI_ROCMSMI_ROOT. This was because the rocm
headers are typically installed under the same root. However, with
rocm-6.0.0 the rocm_smi.h causes a failure while building the sysdetect
component in PAPI (component that is enabled by default). Thus, we now
look explicitly for the rocm_smi header in PAPI_ROCMSMI_ROOT instead in
order to isolate the sysdetect & rocm components from rocm_smi.
The path of hipcc in the ROCm installation directory has changed. In
order to be location independent the rocm/tests Makefile should locate
the hipcc compiler in the installation directory rather than relying on
a fixed pathname.
@gcongiu gcongiu force-pushed the 2023.12.19_rocm-smi-fix branch from fea07e8 to 89793b0 Compare December 20, 2023 14:22
@gcongiu gcongiu merged commit b876424 into icl-utk-edu:master Dec 20, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants