Re: cpuinfo cache size

2015-08-29 Thread Corinna Vinschen
Hi Marco, On Jun 23 15:39, Marco Atzeri wrote: > Hi Corinna, > > for a porting of a math lib to cygwin we are trying to obtain > the same information of > > sysconf(_SC_LEVEL1_DCACHE_SIZE) > sysconf(_SC_LEVEL2_CACHE_SIZE) > sysconf(_SC_LEVEL3_CACHE_SIZE) > sysconf(_SC_LEVEL4_CACHE_SIZE) > > but

Re: cpuinfo cache size

2015-08-03 Thread Corinna Vinschen
On Aug 3 10:15, Achim Gratz wrote: > Corinna Vinschen cygwin.com> writes: > > Cygwin is lacking the code to fetch L3 caches and afaics, it's not > > overly simple. At least calling cpuid as for L1 and L2 caches is not > > sufficient, apparently. > > If you can use the Windows API, then this > h

Re: cpuinfo cache size

2015-08-03 Thread Marco Atzeri
On 8/3/2015 12:15 PM, Achim Gratz wrote: Corinna Vinschen cygwin.com> writes: Cygwin is lacking the code to fetch L3 caches and afaics, it's not overly simple. At least calling cpuid as for L1 and L2 caches is not sufficient, apparently. If you can use the Windows API, then this https://ms

Re: cpuinfo cache size

2015-08-03 Thread Achim Gratz
Corinna Vinschen cygwin.com> writes: > Cygwin is lacking the code to fetch L3 caches and afaics, it's not > overly simple. At least calling cpuid as for L1 and L2 caches is not > sufficient, apparently. If you can use the Windows API, then this https://msdn.microsoft.com/en-us/library/ms683194.a

Re: cpuinfo cache size

2015-06-23 Thread Corinna Vinschen
On Jun 23 15:39, Marco Atzeri wrote: > Hi Corinna, > > for a porting of a math lib to cygwin we are trying to obtain > the same information of > > sysconf(_SC_LEVEL1_DCACHE_SIZE) > sysconf(_SC_LEVEL2_CACHE_SIZE) > sysconf(_SC_LEVEL3_CACHE_SIZE) > sysconf(_SC_LEVEL4_CACHE_SIZE) > > but of course

cpuinfo cache size

2015-06-23 Thread Marco Atzeri
Hi Corinna, for a porting of a math lib to cygwin we are trying to obtain the same information of sysconf(_SC_LEVEL1_DCACHE_SIZE) sysconf(_SC_LEVEL2_CACHE_SIZE) sysconf(_SC_LEVEL3_CACHE_SIZE) sysconf(_SC_LEVEL4_CACHE_SIZE) but of course none of them is implemented in cygwin. The /proc/cpuinfo