Files
rocm-systems/source/docs/how-to/samples.md
T
srawat 69caa62b60 rocprofv3 doc updates (#982)
* updating rocprofv3

* using rocprofv3

* review updates

* naming standardization

* Update source/docs/how-to/using-rocprofv3.rst

Co-authored-by: Leo Paoletti <164940351+lpaoletti@users.noreply.github.com>

* review comments

* adding API references

* kernel filtering

* Remove Sphinx warn as error

To bypass false warning for linking between rst and md

* remove unused (duplicate) refs in _toc.yml.in

---------

Co-authored-by: Gopesh Bhardwaj <gopesh.bhardwaj@amd.com>
Co-authored-by: Leo Paoletti <164940351+lpaoletti@users.noreply.github.com>
Co-authored-by: Sam Wu <22262939+samjwu@users.noreply.github.com>
Co-authored-by: Peter Jun Park <peter.park@amd.com>
2024-08-02 14:08:04 -05:00

967 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