Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 15, 2016 Found on Reddit: Cache sizes with CPUID in C++ and D | ||||
---|---|---|---|---|
| ||||
https://www.reddit.com/r/programming/comments/4jfoez/cache_sizes_with_cpuid_in_c_and_d/ Quote from the original article: "In D, there is a cpuid module that can retrieve cache information, but from what I've found it's incorrect." Then the author provides a function that does it correctly. Ali |
May 15, 2016 Re: Found on Reddit: Cache sizes with CPUID in C++ and D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Sunday, 15 May 2016 at 14:56:47 UTC, Ali Çehreli wrote:
>
> https://www.reddit.com/r/programming/comments/4jfoez/cache_sizes_with_cpuid_in_c_and_d/
>
> Quote from the original article: "In D, there is a cpuid module that can retrieve cache information, but from what I've found it's incorrect."
>
> Then the author provides a function that does it correctly.
>
> Ali
Thanks!
|
May 15, 2016 Re: Found on Reddit: Cache sizes with CPUID in C++ and D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Sunday, 15 May 2016 at 14:56:47 UTC, Ali Çehreli wrote:
> Quote from the original article: "In D, there is a cpuid module that can retrieve cache information, but from what I've found it's incorrect."
>
> Then the author provides a function that does it correctly.
But the article doesn't tell what's wrong with.
So what's wrong with:
import core.cpuid;
const(CacheInfo)[5] dc = dataCaches();
?
|
May 15, 2016 Re: Found on Reddit: Cache sizes with CPUID in C++ and D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On 5/15/2016 7:56 AM, Ali Çehreli wrote: > Then the author provides a function that does it correctly. https://issues.dlang.org/show_bug.cgi?id=16028 |
Copyright © 1999-2021 by the D Language Foundation