Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add preliminary support for merging difftrace #180

Merged
merged 1 commit into from
Oct 7, 2023
Merged

Conversation

poemonsense
Copy link
Member

This commit adds preliminary support for merging difftest bundles across various cycles to reduce the memory traffic.

Some cases do not support merging yet and should be identified in the bundle definitions via supportsMerge and supportsBase. Examples include skipped instructions and store events (to maintain the golden memory).

Currently XiangShan requires ~20K merged difftrace during 100K cycles of simulation with the microbench workload (~100K instructions). NutShell requires ~612 merged difftrace during the 100K cycles of simulation with the microbench workload (~50K instructions). XiangShan requires more merged difftrace because of the existence of StoreEvent to maintain the global golden memory.

This commit adds preliminary support for merging difftest bundles
across various cycles to reduce the memory traffic.

Some cases do not support merging yet and should be identified in
the bundle definitions via `supportsMerge` and `supportsBase`.
Examples include skipped instructions and store events (to maintain
the golden memory).

Currently XiangShan requires ~20K merged difftrace during 100K cycles
of simulation with the microbench workload (~100K instructions).
NutShell requires ~612 merged difftrace during the 100K cycles of
simulation with the microbench workload (~50K instructions).
XiangShan requires more merged difftrace because of the existence
of StoreEvent to maintain the global golden memory.
@poemonsense poemonsense requested a review from wakafa1 October 6, 2023 14:51
@poemonsense poemonsense merged commit f778aff into master Oct 7, 2023
3 checks passed
@poemonsense poemonsense deleted the support-merge branch October 7, 2023 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant