Hi,
I'm trying to compile a simple ISPC program:
export void normalizeSOA(uniform double array[], uniform int count,
uniform double zeros[]) {
double l2 = 0;
foreach (i = 0 ... count/4) {
double x = array[4*i];
double y = array[4*i+1];
double z = array[4*i+2];
double w = array[4*i+3];
l2 += x*x + y*y + z*z + w*w;
}
zeros[0] = reduce_add(l2);
}
I always get Performance warnings about the gather if the datatype is
double.
I would have expected the loads to be coalesced.
--
You received this message because you are subscribed to the Google Groups
"Intel SPMD Program Compiler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.