Fwd: Questions about Vc
Matthias Kretz
[please enable javascript to see the address]
Mon Sep 29 14:25:43 CEST 2014
On Monday 29 September 2014 14:19:00 Daniel Cámpora wrote:
> Vertical is usually more tough (and more fun).
Not necessarily. Horizontal vectorization often requires a redesign of the
data structures... In any case vertical is often much harder to scale to
larger vector registers, which is why I recommend to always consider
horizontal vectorization as the default.
> > 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.
>
> That's very nice input. I'll have a look into developing something myself
> if I find some time.
> Was this something you guys intended to support in the short future?
Vc::simdarray is in the staging branch of the git repository. It's far from
finished, but it's working remarkably well. And note that simdarray is built
on top of the Vc::Vector<T> types and thus its implementation is mostly
platform-independent.
--
─────────────────────────────────────────────────────────────
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