I do not know if OpenMP 4 support this for loop or not. The speed with and without the pragma
is the same.
#pragma omp for simd
for (size_t i = 0; i < col; i++)
{
C[i] += A[i]* B[i];
}
I do not know if OpenMP 4 support this for loop or not. The speed with and without the pragma
is the same.
#pragma omp for simd
for (size_t i = 0; i < col; i++)
{
C[i] += A[i]* B[i];
}
The reason (I guess) for the pragma do be of no effect is double:
simd
directive; and