Элементы таких векторов даже не выровнены на границах 32 байта !!!
Код: Выделить всё
typedef __m512 VectorElementType;
typedef std::vector VectorType;
VectorType xCoordinates;
VectorType yCoordinates;
// Push back some elements to the vectors...
auto address1{ reinterpret_cast(&xCoordinates[0]) };
auto address2{ reinterpret_cast(&yCoordinates[0]) };
assert(address1 % 32 == 0);
assert(address2 % 32 == 0);
Это, возможно, известная проблема G ++?
Подробнее здесь: https://stackoverflow.com/questions/796 ... ector-m512
Мобильная версия