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

[explorer] Dump actions.json for best candidates #281

Closed Elarnon closed 5 years ago

Elarnon commented 5 years ago

Previously we were generating a best_X.c and best_X.cfg for each best candidate, which doesn't allow to easily re-use the found implementation e.g. in the debugger. The tlcli rebuild command was introduced for this purpose, and can extract a replay file from the eventlog.

However, evenlogs these days tend to be quite large, and it may not be desirable to keep them for runs which don't need specific performance analysis. Hence, this patch changes the mechanism for dumping best candidates: now a directory best_X is created, with the generated code in code.c; the loop tree in code.cfg; and the replay in actions.json (not unlike the format used for errors, which also contain extra files about the error).

andidr commented 5 years ago

Previously we were generating a best_X.c and best_X.cfg for each best candidate, which doesn't allow to easily re-use the found implementation e.g. in the debugger. The tlcli rebuild command was introduced for this purpose, and can extract a replay file from the eventlog.

However, evenlogs these days tend to be quite large, and it may not be

eventlogs

desirable to keep them for runs which don't need specific performance analysis. Hence, this patch changes the mechanism for dumping best candidates: now a directory best_X is created, with the generated code in code.c; the loop tree in code.cfg; and the replay in actions.json (not unlike the format used for errors, which also contain extra files about the error).