{"id":18711174,"url":"https://github.com/rocm/roctracer","last_synced_at":"2025-04-04T22:06:45.210Z","repository":{"id":39001415,"uuid":"136079491","full_name":"ROCm/roctracer","owner":"ROCm","description":"ROCm Tracer Callback/Activity Library for Performance tracing AMD GPUs","archived":false,"fork":false,"pushed_at":"2025-03-24T17:08:13.000Z","size":5268,"stargazers_count":79,"open_issues_count":18,"forks_count":34,"subscribers_count":21,"default_branch":"amd-staging","last_synced_at":"2025-03-28T21:06:32.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rocm.docs.amd.com/projects/roctracer/en/latest/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ROCm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-04T20:33:42.000Z","updated_at":"2025-03-14T21:07:50.000Z","dependencies_parsed_at":"2024-06-04T18:32:53.485Z","dependency_job_id":"12cb4219-83f7-4dce-883d-4ca8be6bc5b6","html_url":"https://github.com/ROCm/roctracer","commit_stats":{"total_commits":672,"total_committers":27,"mean_commits":24.88888888888889,"dds":0.5446428571428572,"last_synced_commit":"4c7c59eb652f6dd1f57fe0cceb2d82b03deba161"},"previous_names":["rocm/roctracer","rocm-developer-tools/roctracer"],"tags_count":70,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Froctracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Froctracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Froctracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ROCm%2Froctracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ROCm","download_url":"https://codeload.github.com/ROCm/roctracer/tar.gz/refs/heads/amd-staging","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247256112,"owners_count":20909240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:37:35.610Z","updated_at":"2025-04-04T22:06:45.196Z","avatar_url":"https://github.com/ROCm.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ROC-tracer\n\n\u003e [!IMPORTANT]\nWe are phasing out development and support for roctracer/rocprofiler/rocprof/rocprofv2 in favor of rocprofiler-sdk/rocprofv3 in upcoming ROCm releases. Going forward, only critical defect fixes will be addressed for older versions of profiling tools and libraries. We encourage all users to upgrade to the latest version, rocprofiler-sdk library and rocprofv3 tool, to ensure continued support and access to new features.\n\n\u003e [!NOTE]\n\u003e The published documentation is available at [ROCTracer](https://rocm.docs.amd.com/projects/roctracer/en/latest/index.html) in an organized, easy-to-read format, with search and a table of contents.\n\n- **ROC-tracer library: Runtimes Generic Callback/Activity APIs**\n\n  The goal of the implementation is to provide a generic independent from specific runtime profiler to trace API and asynchronous activity.\n\n  The API provides functionality for registering the runtimes API callbacks and asynchronous activity records pool support.\n\n- **ROC-TX library: Code Annotation Events API**\n\n  Includes API for:\n\n  - `roctxMark`\n  - `roctxRangePush`\n  - `roctxRangePop`\n\n## Usage\n\n### `rocTracer` API\n\nTo use the rocTracer API you need the API header and to link your application with `roctracer` .so library:\n\n- `/opt/rocm/include/roctracer/roctracer.h`\n\n  API header.\n\n- `/opt/rocm/lib/libroctracer64.so`\n\n  .so library.\n\n### `rocTX` API\n\nTo use the rocTX API you need the API header and to link your application with `roctx` .so library:\n\n- `/opt/rocm/include/roctracer/roctx.h`\n\n  API header.\n\n- `/opt/rocm/lib/libroctx64.so`\n\n  .so library.\n\n## Library source tree\n\n- `doc`\n\n  Documentation.\n\n- `inc`\n\n  Include header files.\n\n  - `roctracer.h`\n\n    `rocTracer` library public API header.\n\n  - `roctx.h`\n  \n    `rocTX` library public API header.\n\n- `src`\n  \n  Library sources.\n\n  - `core`\n\n    `rocTracer` library API sources.\n\n  - `roctx`\n\n    `rocTX` library API sources.\n\n  - `util`\n\n    Library utils sources.\n\n- `test`\n\n  Test suit.\n\n  - `MatrixTranspose`\n\n    Test based on HIP MatrixTranspose sample.\n\n## Documentation\n\n- API description:\n  - ['roctracer' / 'rocTX' profiling C API specification](doc/roctracer_spec.md)\n- Code examples:\n  - [HIP API ops, GPU Activity Tracing](doc/roctracer_spec.md#41-hip-api-ops-gpu-activity-tracing)\n  - [MatrixTranspose HIP sample with all APIs/activity tracing enabled](doc/roctracer_spec.md#42-matrixtranspose-hip-sample-with-all-apisactivity-tracing-enabled)\n\n## Build and run tests\n\n- ROCm is required\n\n- Packages required:\n\n  1. For Ubuntu 18.04 and Ubuntu 20.04 the following adds the needed packages:\n\n   ````shell\n   apt install python3 python3-pip gcc g++ libatomic1 make rocm-llvm-dev \\\n    cmake doxygen graphviz texlive-full\n   ````\n\n  2. For CentOS 8.1 and RHEL 8.1 the following adds the needed packages:\n\n   ````shell\n   yum install -y python3 python3-pip gcc gcc-g++ make rocm-llvm-devel \\\n    cmake libatomic doxygen graphviz texlive \\\n    texlive-xtab texlive-multirow texlive-sectsty \\\n    texlive-tocloft texlive-tabu texlive-adjustbox\n   ````\n\n  3. For SLES 15 Service Pack 15 the following adds the needed packages:\n\n   ````shell\n   zypper in python3 python3-pip gcc gcc-g++ make rocm-llvm-devel \\\n    cmake libatomic doxygen graphviz \\\n    texlive-scheme-medium texlive-hanging texlive-stackengine \\\n    texlive-tocloft texlive-etoc texlive-tabu\n   ````\n\n- Python modules requirements: `CppHeaderParser`, `argparse`.\n\n  To install:\n\n  ```sh\n  pip3 install CppHeaderParser argparse\n  ```\n\n- Clone development branch of `roctracer`:\n\n  ```sh\n  git clone -b amd-master https://github.com/ROCm-Developer-Tools/roctracer\n  ```\n\n- To build `roctracer` library:\n\n   ```sh\n   cd \u003cyour path\u003e/roctracer\n   ./build.sh\n   ```\n\n- To build and run test:\n\n  ```sh\n  cd \u003cyour path\u003e/roctracer/build\n  make mytest\n  run.sh\n  ```\n\n## Installation\n\nInstall by:\n\n  ```sh\n  make install\n  ```\n\n  or:\n\n  ```sh\n  make package \u0026\u0026 dpkg -i *.deb\n  ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocm%2Froctracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocm%2Froctracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocm%2Froctracer/lists"}