Re: Found on Reddit: Cache sizes with CPUID in C++ and D
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
Re: Found on Reddit: Cache sizes with CPUID in C++ and D
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(); ?
Re: Found on Reddit: Cache sizes with CPUID in C++ and D
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!
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