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

rocm_smi: Update read me to note two cases of root path #325

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

djwoun
Copy link
Contributor

@djwoun djwoun commented Feb 28, 2025

Pull Request Description

Updated read me to note two cases of root path

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

Treece-Burgess
Treece-Burgess previously approved these changes Mar 12, 2025

The system will search the directories listed in **LD\_LIBRARY\_PATH**. You can add an additional path with a colon e.g.
The system will search the directories listed in **LD_LIBRARY_PATH**. You can add an additional path with a colon, e.g.:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/WhereALibraryCanBeFound
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to be export LD_LIBRARY_PATH=/WhereALibraryCanBeFound:$LD_LIBRARY_PATH?

* [Known Limitations](#known-limitations)
* [FAQ](#faq)
***
- [Enabling the ROCM_SMI Component](#enabling-the-rocm_smi-component)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why switch from * to -?

- [Known Limitations](#known-limitations)
- [FAQ](#faq)

---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, why switch from *** to ---?

@@ -21,40 +23,49 @@ Typically, the utility `papi_components_avail` (available in `papi/src/utils/pap
## Environment Variables

For ROCM_SMI, PAPI requires one environment variable: `PAPI_ROCMSMI_ROOT`. Note
in most installations, this is a subdirectory under the ROCM directory. This is
required at both compile and run time.
that in most installations this is a subdirectory under the ROCM directory. This
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would restructure this sentence. To me it doesn't seem clear what subdirectory is actually needed. Rather it sort of makes it seem that PAPI_ROCMSMI_ROOT is that subdirectory.

One idea could be:

For ROCM_SMI, PAPI requires the environment variable PAPI_ROCMSMI_ROOT to be set such that the shared objectlibrocm_smi64.so and the directory rocm_smi are found. This variable is required at both compile and run time.

....

If you have a clearer/more concise way go with that as this is mainly an example/idea.


There are two common cases for setting this variable:

1. **Case 1:**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could possibly be more explicit when Case 1 and Case 2 are needed.

Based off their documentation, in ROCm 5.2 they restructured their filesystem to be inline with the Linux Filesystem Hierarchy Standard (https://rocm.docs.amd.com/en/latest/conceptual/file-reorg.html). Eventually in 6.0, they fully adopt the Linux Filesystem Hierarchy Standard and removed backwards compatibility.

Based off that, Case 1 should cover ROCm < 5.2 and Case 2 should cover ROCm >= 5.2.

@Treece-Burgess Treece-Burgess dismissed their stale review March 12, 2025 20:07

Approved, when I should have requested changes.

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