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

Perf optimization. I-cache aware? #17931

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

daminakaTT
Copy link
Contributor

@daminakaTT daminakaTT commented Feb 18, 2025

Ticket

N/A

Problem description

erisc has performance issue
Current performance is 95% 6.35 B/cycle, 5% 6.83 B/cycle

What's changed

  • 2 element unrolling of checksum calculation
    95% 6.35 B/cycle, 6.93 B/cycle
  • Remove unrolling from copy loop
    100% 7.05 B/cycle
  • Both
    100% 7.06 B/cycle

Originally two different performances might come from cache-memory access difference.
For accumulation, 2 elements unroll is the best.
For simple copy, no unrolling is the best.
I'm assuming that unroll for copy makes instruction to be big so instruction copy happens many time.
2 elements unroll might be thanks to 16 bytes operation?

Checklist

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