google / google/gematria

GRANITE Performance model with context

Open
#196 1 comment 0 reactions 1 assignee Claimed by @virajbshah View on GitHub
enhancement
Dominant language
Python
Stars
95
Forks
19
PR merge metrics
No merged PRs in 30d

Description

As of now, the GRANITE model is basic-block oriented (resp. trace-oriented), i.e. it doesn't use any information about code that was executed before or after the basic block. We believe that adding such information may provide additional context to improve the prediction of the precisions.

The GRANITE model can be extended to cover such context by:
1. adding code graph from the preceding basic block (in execution order) and the following basic block,
2. modifying the predictor to compute throughput only from the instructions in the input basic block.

This modification will also require an extension to the data collection methodology to collect basic blocks and their throughput _with_ the execution context.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.