Adding correct cache sizes for PPC architecture.

This commit is contained in:
Everton Constantino 2020-01-13 16:58:14 +00:00 committed by Rasmus Munk Larsen
parent 1d0c45122a
commit 42838c28b8

View File

@ -35,6 +35,10 @@ inline std::ptrdiff_t manage_caching_sizes_helper(std::ptrdiff_t a, std::ptrdiff
const std::ptrdiff_t defaultL1CacheSize = 32*1024; const std::ptrdiff_t defaultL1CacheSize = 32*1024;
const std::ptrdiff_t defaultL2CacheSize = 256*1024; const std::ptrdiff_t defaultL2CacheSize = 256*1024;
const std::ptrdiff_t defaultL3CacheSize = 2*1024*1024; const std::ptrdiff_t defaultL3CacheSize = 2*1024*1024;
#elif EIGEN_ARCH_PPC
const std::ptrdiff_t defaultL1CacheSize = 64*1024;
const std::ptrdiff_t defaultL2CacheSize = 512*1024;
const std::ptrdiff_t defaultL3CacheSize = 4*1024*1024;
#else #else
const std::ptrdiff_t defaultL1CacheSize = 16*1024; const std::ptrdiff_t defaultL1CacheSize = 16*1024;
const std::ptrdiff_t defaultL2CacheSize = 512*1024; const std::ptrdiff_t defaultL2CacheSize = 512*1024;