Boost logo

Boost :

Subject: Re: [boost] interest in structure of arrays container?
From: Larry Evans (cppljevans_at_[hidden])
Date: 2016-10-25 13:41:40

On 10/25/2016 12:22 PM, Larry Evans wrote:
> From the above, the LibFlatArray and SSE methods are the
> fastest. I'd guess that a new "SoA block SSE" method, which
> uses the _mm_* methods, would narrow the difference. I'll
> try to figure out how to do that. I notice:
> #include <mmintrin.h>
> doesn't produce a compile error; however, that #include
> doesn't have the _mm_add_ps used here:
> Do you know of some package I could install on my ubuntu OS
> that makes those SSE functions, such as _mm_add_ps,
> available?
Never mind. Google for:


lead to:

and change of #include to:

   #include <emmintrin.h>

which solved problem.

minimum duration=0.0371714

comparitive performance table:

method rel_duration
________ ______________
SSE_opt 0.330574
SSE 0.440405
Flat 0.904265
SoA 0.911574
Block 0.97398
AoS 1
StdArray 1.15079
LFA undefined

Compilation finished at Tue Oct 25 12:36:33

Boost list run by bdawes at, gregod at, cpdaniel at, john at