Boost logo

Boost Users :

Subject: [Boost-users] array alignment in ublas matrices
From: petros (pmamales_at_[hidden])
Date: 2011-09-13 13:12:30

I am using the ublas matrices with mkl. The documentation of mkl suggests/requires that allocated arrays are aligned on 16 byte boundaries.
The matrix structures within ublas delegate the memory management in the std allocator which at the very end reduces to new.
I know that one way to address this is write my own allocator for the unbounded_array that lies on the basis of the storage structures.
However, this is an error-prone job and it is suggested that this is avoided.
Any other solutions? – hopefully more straightforward ?
Thank you in advance for your help,
ps: using visual studio 2010 on winn7/visa 64 bit and mkl 10.3.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at