mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
@@ -1331,7 +1331,7 @@ inline void queryCacheSizes(int& l1, int& l2, int& l3) {
|
||||
val_size = sizeof(val);
|
||||
if (sysctlbyname("hw.l3cachesize", &val, &val_size, NULL, 0) == 0 && val > 0) l3 = static_cast<int>(val);
|
||||
}
|
||||
#elif defined(_SC_LEVEL1_DCACHE_SIZE)
|
||||
#elif EIGEN_OS_UNIX && defined(_SC_LEVEL1_DCACHE_SIZE)
|
||||
// On Linux and other POSIX systems, use sysconf to query cache sizes.
|
||||
l1 = sysconf(_SC_LEVEL1_DCACHE_SIZE);
|
||||
l2 = sysconf(_SC_LEVEL2_CACHE_SIZE);
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
|
||||
#include "main.h"
|
||||
|
||||
template <typename MatrixType>
|
||||
void matrixRedux(const MatrixType& m) {
|
||||
template <typename MatrixType>
|
||||
void matrixRedux(const MatrixType& m) {
|
||||
typedef typename MatrixType::Scalar Scalar;
|
||||
typedef typename MatrixType::RealScalar RealScalar;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user