/tensile_rkutils

replacement kernel development tools for tensile.

Primary LanguagePython

Tensile Replacement Kernel Development Utils

ROCm tensile replacement kernel development utils.

  • rkgen  generate replacement kernel template: *.sp3.
  • sp3cc  compile *.sp3 to *.inc
  • rkbuild  build *.co with *.inc
  • rkperf  perf the kernel with various kinds of problem sizes

Usage Guide

Setup

  • $ cd tensile_rkutils && source setup_env

Generate kernel

  • $ rkgen -f <path/to/config file: config/MT64x128x32.json> [-o path/to/output.sp3]

Compile

  • $ sp3cc <path/to/*.sp3>

Build

  • $ cd 1_BenchmarkProblems/*/00_Final/source/assembly
  • $ rkbuild <path/to/*.inc>

Testing

  • $ cd 1_BenchmarkProblems/*/00_Final/build
  • $ rkperf -g conf.json   # Create profile
  • Modify problem sizes in conf.json
  • $ rkperf -f conf.json   # Read the output *.csv using execl.