www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Found on Reddit: Cache sizes with CPUID in C++ and D

reply =?UTF-8?Q?Ali_=c3=87ehreli?= <acehreli yahoo.com> writes:
 
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
next sibling parent 9il <ilyayaroshenko gmail.com> writes:
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
prev sibling next sibling parent =?UTF-8?B?Tm9yZGzDtnc=?= <per.nordlow gmail.com> writes:
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
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
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
May 15 2016