This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Performance of Fixed Size Array and Vector

Tags: None
(comma "," separated)
lplagne
Registered Member
Posts
11
Karma
0
Hi,

Basic operations (+,-,*) between vectors/arrays of type Eigen::Array<float,4,1> are translated to direct SSE instructions.

What should I espect for sizes that are multiple of 4 like Eigen::Array<float,8,1> and for other sizes like Eigen::Array<float,7,1> ?

Thank you for your help.

Laurent
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
for integer multiples of the register size (e.g., 4, 8, 12, etc. for float/SSE) then they are directly translated to SSE instructions and explicitly unrolled using meta-programming. For other dimensions, no vectorization occurs.
lplagne
Registered Member
Posts
11
Karma
0
Thanx Gaël !


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]