Fwd: Questions about Vc
Matthias Kretz
[please enable javascript to see the address]
Mon Sep 29 13:50:46 CEST 2014
Hi,
just a quick answer to let you know that I have some high priority work to do
the next two weeks...
IIUC your code vectorizes inside each object (vertical vectorization) not over
multiple objects (horizontal vectorization), right. In my experience vertical
vectorization requires shuffles, horizontal vectorization doesn't.
At this point Vc is much better suited for horizontal vectorization...
Once you do vertical vectorization you rely on the number of entries in the
SIMD register anyway and would be better of with something like
Vc::simdarray<float, 4> instead of Vc::float_v. With Vc::simdarray a shuffle
API will be much easier to define, because the number of entries is portable
for a given type.
-Matthias
--
─────────────────────────────────────────────────────────────
Dipl.-Phys. Matthias Kretz
Web: http://compeng.uni-frankfurt.de/?mkretz
SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc
─────────────────────────────────────────────────────────────
More information about the Vc
mailing list