This page contains changes for a test release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

rocprofiler

rocprofiler#

rocprofiler: ROCProfiler API Specification
ROCProfiler API Specification

Introduction

The ROCProfiler library provides GPU Applications Profiling/Tracing APIs. The API offers functionality for profiling GPU applications in kernel, application and user mode. It also supports no replay mode and provides the records pool support through a simple sequence of calls. This enables users to profile and trace in easy small steps. Our samples code provides good examples on how to use the API calls for both profiling and tracing.

Supported AMD GPU Architectures

The following AMD GPU architectures are supported:

  • gfx900 (AMD Vega 10)
  • gfx906 (AMD Vega 7nm also referred to as AMD Vega 20)
  • gfx908 (AMD Instinct™ MI100 accelerator)
  • gfx90a (Aldebaran)
  • gfx94x (AMD Instinct™ MI300)
  • gfx1010 (Navi10)
  • gfx1011 (Navi12)
  • gfx1012 (Navi14)
  • gfx1030 (Sienna Cichlid)
  • gfx1031 (Navy Flounder)
  • gfx1032 (Dimgrey Cavefish)
  • gfx1100 (Navi31) For more information about the AMD ROCm ecosystem, please refer to:
  • https://docs.amd.com/

Known Limitations and Restrictions

The AMD Profiler API library implementation currently has the following restrictions. Future releases aim to address these restrictions.

  1. The following profiling modes are not yet implemented:
    • ::ROCPROFILER_APPLICATION_REPLAY_MODE
    • ::ROCPROFILER_USER_REPLAY_MODE
  2. While setting filters, properties can mix up and may produce undesirable results.

References

  1. Advanced Micro Devices: www.amd.com
  2. AMD ROCm Ecosystem: docs.amd.com

Legal Disclaimer and Copyright Information

AMD ROCm software is made available by Advanced Micro Devices, Inc. under the open source license identified in the top-level directory for the library in the repository on Github.com (Portions of AMD ROCm software are licensed under MITx11 and UIL/NCSA. For more information on the license, review the license.txt in the top-level directory for the library on Github.com). The additional terms and conditions below apply to your use of AMD ROCm technical documentation.

©2019-2023 Advanced Micro Devices, Inc. All rights reserved.

The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions, and typographical errors. The information contained herein is subject to change and may be rendered inaccurate for many reasons, including but not limited to product and roadmap changes, component and motherboard version changes, new model and/or product releases, product differences between differing manufacturers, software changes, BIOS flashes, firmware upgrades, or the like. Any computer system has risks of security vulnerabilities that cannot be completely prevented or mitigated. AMD assumes no obligation to update or otherwise correct or revise this information. However, AMD reserves the right to revise this information and to make changes from time to time to the content hereof without obligation of AMD to notify any person of such revisions or changes.

THIS INFORMATION IS PROVIDED "AS IS." AMD MAKES NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE CONTENTS HEREOF AND ASSUMES NO RESPONSIBILITY FOR ANY INACCURACIES, ERRORS, OR OMISSIONS THAT MAY APPEAR IN THIS INFORMATION. AMD SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR ANY PARTICULAR PURPOSE. IN NO EVENT WILL AMD BE LIABLE TO ANY PERSON FOR ANY RELIANCE, DIRECT, INDIRECT, SPECIAL, OR OTHER CONSEQUENTIAL DAMAGES ARISING FROM THE USE OF ANY INFORMATION CONTAINED HEREIN, EVEN IF AMD IS EXPRESSLY ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

AMD, the AMD Arrow logo, AMD Instinct™, Radeon™, AMD ROCm™, and combinations thereof are trademarks of Advanced Micro Devices, Inc. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries. PCIe® is a registered trademark of PCI-SIG Corporation. Other product names used in this publication are for identification purposes only and may be trademarks of their respective companies.

This document is going to discuss the following:

  1. Symbol Versions
  2. Library Versioning
  3. Status Codes
  4. General ROCProfiler Requirements
  5. Timestamp Operations
  6. General Records Type
  7. Profiling Part Handling
  8. Tracer Part Handling
    • roctx_tracer_api_data_group
    • hsa_tracer_api_data_group
    • hip_tracer_api_data_group
  9. Memory Storage Buffer
  10. ROCProfiler Sessions
  11. Device Profiling API
  12. rocprofiler_plugins