Skip to content

ksaurabh-amd/python_roctx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_roctx

Example: Using roctx calls within a Python program

Step 1: Compile the hip_code library

module load rocm
make

This will create libHIPcode.so which is used in the python code downstream.

Step 2: Run the script to make sure it works

python3 roctx_example.py

Step 3: Get the roctx trace using rocprof

 rocprofv3 --marker-trace --output-format pftrace -- python roctx_example.py

Step 4: Copy the pftrace file to your system and visualize in Perfetto

About

Simple example showing how to use ROCTX markers within Python code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.3%
  • C++ 24.6%
  • Makefile 11.1%