make bench_gemm print out the queried cache sizes

This commit is contained in:
Gael Guennebaud
2010-06-21 12:07:05 +02:00
parent e54635da11
commit 4cd38b333c
2 changed files with 11 additions and 7 deletions

View File

@@ -601,7 +601,7 @@ public:
/** \internal
* \returns the size in Bytes of the L1 data cache */
inline std::ptrdiff_t ei_fetchL1CacheSize()
inline std::ptrdiff_t ei_queryL1CacheSize()
{
int abcd[4];
@@ -644,7 +644,7 @@ inline std::ptrdiff_t ei_fetchL1CacheSize()
/** \internal
* \returns the size in Bytes of the L2 or L3 cache if this later is present */
inline std::ptrdiff_t ei_fetchTopLevelCacheSize()
inline std::ptrdiff_t ei_queryTopLevelCacheSize()
{
int abcd[4];
EIGEN_CPUID(abcd,0x80000006);