Files
rocm-systems/source/docs/how-to/samples.md
T
Gopesh Bhardwaj 5bec9f66b6 gobhardw/swdev 479013 (#1014)
* test pr for ROCm sdk tests

* SWDEV-479013 doc updates
2024-08-13 23:35:12 +05:30

968 B

Samples

The samples are provided to help you see the profiler in action.

Finding samples

The ROCm installation provides sample programs and rocprofv3 tool.

  • Sample programs are installed here:

    /opt/rocm/share/rocprofiler-sdk/samples
    
  • rocprofv3 tool is installed here:

    /opt/rocm/bin
    

Building Samples

To build samples from any directory, run:

cmake -B build-rocprofiler-sdk-samples /opt/rocm/share/rocprofiler-sdk/samples -DCMAKE_PREFIX_PATH=/opt/rocm
cmake --build build-rocprofiler-sdk-samples --target all --parallel 8

Running samples

To run the built samples, cd into the build-rocprofiler-sdk-samples directory and run:

ctest -V

:::{note} Running a few of these tests require you to install pandas and pytest first. :::

/usr/local/bin/python -m pip install -r requirements.txt