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; andIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With