-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 cache flush for arm #9170
Add cache flush for arm #9170
Conversation
Yeah I believe the original author is @FrozenGene |
Here is the original commit: 6308379dc71137d1ff8628ab1fb555f7a5770f45 |
6d36c3a
to
8fd5846
Compare
Thanks @tkonolige! This is merged :-) |
@junrushao1994 @tkonolige Yes. Some background, this is written originally by myself when I developed ansor. However, I found this doesn't have effect on the rasperry pi 3b+ like we gained on x86 at that time. So I don't upload the code to the upstream. @tkonolige Do you test it and find it has effect on your arm devices? |
@@ -320,18 +320,33 @@ std::shared_ptr<RPCSession> RPCModuleGetSession(Module mod) { | |||
* which leads to lower performance. | |||
*/ | |||
inline void CPUCacheFlushImpl(const char* addr, unsigned int len) { | |||
// TODO(FrozenGene): Support ARM. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should leave this TODO as we haven't completed support for arm 32 bits.
* Add cache flush for arm * formatting Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
* Add cache flush for arm * formatting Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
This PR add a cache flush implementation for ARM. The code was written by @merrymercy for Tenset to improve accuracy of program measurement. I am just helping getting things upstreamed (with permission).
@junrushao1994 @merrymercy