ulysseB / telamon

A framework to find good combinations of optimizations for computational kernels on GPUs.
https://ulysseb.github.io/telamon/telamon
Apache License 2.0
23 stars 6 forks source link

[tlcli] Add a `benchmark` command #290

Closed Elarnon closed 5 years ago

Elarnon commented 5 years ago

This patch adds a benchmark command to the telamon CLI, allowing to re-run benchmarks (both of the generated code, and the reference code) for a given kernel and replay file after-the-fact.

This will print the same information as in the benchmark.txt generated during the search, namely the average runtime of the benchmarked kernel and the reference. The bound for the fixed candidate generated is also displayed.

A batch mode is also provided, for running the same kernel with different replays. In that case, the output (to stdout) is a .csv containing one line per replay, with the raw measurements.

Elarnon commented 5 years ago

Changed num bench runs to a parameter.