Skip to content

Commit

Permalink
rocm: update README
Browse files Browse the repository at this point in the history
For versions of ROCM >= 5.2.0, the ROCM library path structure is different.

The README has been updated to reflect this difference.

This was verified on the Frontier supercomputer.
  • Loading branch information
dbarry9 committed Oct 25, 2023
1 parent 40a897c commit d63d685
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/rocm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,18 @@ based on the PAPI\_ROCM\_ROOT variable. These are not needed by PAPI, but by the
ROCPROFILER software we interface with.

These added environment variables are typically set as follows, after
PAPI\_ROCM\_ROOT has been exported. An example is provided below:
PAPI\_ROCM\_ROOT has been exported. An example is provided below.

For ROCM versions < 5.2.0:

export ROCP_METRICS=$PAPI_ROCM_ROOT/rocprofiler/lib/metrics.xml
export HSA_TOOLS_LIB=$PAPI_ROCM_ROOT/rocprofiler/lib/librocprofiler64.so

For ROCM versions >= 5.2.0:

export ROCP_METRICS=${PAPI_ROCM_ROOT}/lib/rocprofiler/metrics.xml
export HSA_TOOLS_LIB=${PAPI_ROCM_ROOT}/lib/librocprofiler64.so

The first of these, ROCP\_METRICS, must point at a file containing the
descriptions of metrics. The second is the location of the rocprofiler library
needed by HSA runtime.
Expand Down

0 comments on commit d63d685

Please sign in to comment.