Thread overview
Found on Reddit: Cache sizes with CPUID in C++ and D
May 15, 2016
Ali Çehreli
May 15, 2016
9il
May 15, 2016
Nordlöw
May 15, 2016
Walter Bright
May 15, 2016
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
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
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
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