class gpr::linalg::canonical::AlignedTile¶
A tile copied into storage aligned to 64 bytes. The vector kernels of Eigen and of the BLAS split a product or a reduction at the first aligned address of an operand, so the order of the additions follows the operand’s address modulo the vector width; heap blocks from the system allocator are aligned to 16 bytes, which leaves that order to address randomisation. Copying every operand of a tile kernel to a 64-byte boundary (the widest vector, AVX-512) with a fixed leading dimension fixes the order, so a run repeats its rounding bit for bit.
#include <gpr/linalg/CanonicalTriangular.h>
class AlignedTile {
public:
// construction
template <typename Derived>
AlignedTile(const Eigen::MatrixBase<Derived>& source);
AlignedTile(const AlignedTile&);
~AlignedTile();
// methods
AlignedTile& operator=(const AlignedTile&);
Eigen::Map<Eigen::MatrixXd, Eigen::Aligned64> map();
};