test if a type can be vectorized
Matthias Kretz
[please enable javascript to see the address]
Fri Sep 29 14:37:46 CEST 2017
Hi Kay,
AFAIK, there is no way to do it with Vc 1.3. I'm pretty certain because I implemented the ability to query for is_destructible/constructible in current master (to become Vc 2.0).
There's probably one workaround, and that's too enumerate all types that are valid, returning true. Return false otherwise. That's not really what you've asked for, though.
Cheers,
Matthias
[please enable javascript to see the address]>:
>Dear group!
>
>I'd like to perform a test on some type T which tells me whether Vc can
>
>form a Vc::Vector from it. I'd like something like
>
>is_simdizable<T>::value
>
>to yield true if Vc::Vector<T> can be formed, false otherwise, so that
>I
>can use the result to dispatch to fall-back code if there is no
>Vc:Vector<T>.
>
>Help appreciated.
>
>With regards
>
>Kay F. Jahnke
>
>
>.
>
>_______________________________________________
>Vc mailing list
>[please enable javascript to see the address]
>https://compeng.uni-frankfurt.de/mailman/listinfo/vc
--
Dr. Matthias Kretz
Senior Software Engineer
Experiment Systems
phone: +49 6159 713084
[please enable javascript to see the address]
GSI Helmholtzzentrum für Schwerionenforschung GmbH
Planckstraße 1
64291 Darmstadt
www.gsi.de
Gesellschaft mit beschränkter Haftung
Sitz der Gesellschaft: Darmstadt
Handelsregister: Amtsgericht Darmstadt, HRB 1528
Geschäftsführung:
Ursula Weyrich
Professor Dr. Karlheinz Langanke
Vorsitzender des Aufsichtsrates: St Dr. Georg Schütte
Stellvertreter: Ministerialdirigent Dr. Rolf Bernhardt
More information about the Vc
mailing list