Skip to content

Commit

Permalink
Merge pull request #104 from dbarry9/2023.10.25_rocm-readme
Browse files Browse the repository at this point in the history
rocm: update README
  • Loading branch information
gcongiu authored Oct 26, 2023
2 parents 40a897c + d63d685 commit ea3cc00
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 ea3cc00

Please sign in to comment.