Profile by name
ttperf relu maps an operation to its TT-Metal test and runs it. No path spelunking.
TT-Metal kernel profiler · CLI
ttperf runs TT-Metal's profiler, parses the result CSV, and
prints the total device kernel duration — the one number
you actually came for.
Without ttperf
tools/tracy/profile_this.pypytest invocationDEVICE KERNEL DURATION by handWith ttperf
Profile name, CSV discovery, parsing, and the total — handled. You read one number.
ttperf relu maps an operation to its TT-Metal test and runs it. No path spelunking.
Finds the profiler's output CSV, verifies it exists, and sums the device kernel duration with pandas.
Override tensor --shape, --dtype, --layout, and DRAM/L1 memory per run.
Set defaults in ~/.ttperf.yaml or ./.ttperf.yaml. CLI flags always win.
--quiet drops decorative output; --verbose turns on debug logging. Exit codes behave.
Resolves your tt-metal root from PYTHONPATH or by walking up the working directory.
TestEltwiseOperations method.pytest, streaming output.DEVICE KERNEL DURATION [ns].--output-dir.Pulled from the package's own test suite — the same
list as ttperf --list-ops. Click any chip to copy its command.
No operations match that filter.
From PyPI
First run
Requires a Tenstorrent TT-Metal environment, Python 3.8+, and pytest. PyYAML is optional, for config files.