Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 762 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 762 Bytes

Run benchmarks

To run all benchmarks:

cmake --build build --target benchmark-mpact

To run selected benchmarks, build the benchmark modules first:

cmake --build build --target build-benchmark-mpact

And then run the benchmark file:

python path/to/the/_benchmark.py

If you would like to run selected kernels in kernels_benchmark.py, you can use --benchmark-filter flag like the following example:

python path/to/the/kernels_benchmark.py --benchmark-filter=add

Profiler

Utils for profiling python scripts and pytorch models could be found in benchmark/python/utils/profiler.py.

To run the profiling example, use the following command:

python benchmark/python/utils/profiler.py