Closed mattkretz closed 7 years ago
Good idea to use float for the counting.
On SSE2, I want "int" for datapar<float>
. On AVX, I want "short" for datapar<float>
, because datapar
Put differently, given a floating-point T, return a [signed / unsigned] integer type U such that datapar
But maybe this feature request is just misguided, and I should use datapar
Hmm. I don't think there will be many users out there that can accept a widely different value range for integral types, just to get a native datapar that matches the float size. Such a user is free to write the necessary template magic himself, IMHO.
I'll close this, until you have more motivation for me. :-)
@jensmaurer:
(BTW, it can be quite efficient to use
float
for counting iterations.)Interesting feature request. What would you expect on an AVX target, where
float
vectors useymm
registers and integral vectors usexmm
registers? IIRC Blue Gene only has float SIMD, integers are all scalar. I'll be happy to incorporate this if you have a good idea how this needs to work.