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

prefetch in Stream implementation for ARM can significantly degrade performance. #2370

Open
gmh42 opened this issue Nov 11, 2024 · 1 comment

Comments

@gmh42
Copy link

gmh42 commented Nov 11, 2024

The prefetch in Stream here: https://github.com/google/highway/blob/master/hwy/ops/arm_neon-inl.h#L4061 in the ARM implementation of Stream can degrade throughput. On a Jetson Nano, I have a Memset-like operation that can achieve 11 GB/s with Store, and is reduced to ~3.5 GB/s with Stream unless I remove the prefetch. Can the prefetch be removed or made optional?

@jan-wassenberg
Copy link
Member

Hi, thanks for reporting. Are you aware of another way to implement the non-temporal behavior? Data Cache Clean is a system instruction.
If not, we'd welcome a pull request to remove the prefetch.

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

No branches or pull requests

2 participants