Vectorize math function calls inside loops

Your application calls serialized versions of math functions when you use the precise floating point model. To fix: Do one of the following:

Example

...
#pragma omp simd
for (i=0; i<n; i++)
...
void add_floats(float *a, float *b, float *c, float *d, float *e, int n)
{
    int i;
    #pragma omp simd
    for (i=0; i<n; i++)
    {
        a[i] = a[i] + b[i] + c[i] + d[i] + e[i];
    }
}

Read More