Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_roctx

Example: Using roctx calls within a Python program

Step 1: Compile the hip_code library

module load rocm/6.0.0
make

Step 2: Run the script to make sure it works

python3 roctx_example.py

Step 3: Get the roctx trace using rocprof

rocprof --roctx-trace -d rocprof_output -o rocprof_output/results.csv python3 roctx_example.py

Step 4: Copy the rocprof_output/results.json file to your system and visualize in Perfetto

About

Simple example showing how to use ROCTX markers within Python code

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages