-
Notifications
You must be signed in to change notification settings - Fork 229
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
Cache sizes #439
Comments
I suspect, but do not know, that your syscalls will compile down to a Could you godbolt + benchmark your cachesize code? |
|
Presumably this would only be called once during program initialization anyway - in which case the cost would be negligible? As for where it belongs.... I have no idea! |
What about boost::predef? I've always thought that the functionality of |
@jzmaddock With the user being responsible for memory allocation with the OI approach this could just be a extra step in initialization. Querying the L1D size should be trivial in comparison to a cache miss/under-utilization. @NAThompson I will open an issue with them to see what they say. |
Sets default L1D value but offers interface for user to change
On the architecture being discussed, the These instructions are great if you are writing a real-time operating system or similar stuff on the metal. They will, however, hit the performance with the branch and pipeline clear. |
In the discussion on the prime sieve PR (#400) we have run into the issue several times of not having a cross-platform way of querying the size of the L1 cache. This repo should solve that issue. Is there an existing library in boost that this should go into as a PR? I think it would be useful outside of math, but it is not clear to me where it should go.
The text was updated successfully, but these errors were encountered: