I have auto-vectorization enabled. When I compile the code, I receive the following warning:
info C5002: loop not vectorized due to reason '1203'
MSDN specifies that the
Loop body includes non-contiguous accesses into an array.
I've look into these links, 1, 2, for help, but have had no luck.
Here is my source code:
for (int row = 0; row < size; ++row) {
for (int col = 0; col < size; ++col) {
float tmp = 0;
for (int i = 0; i < size; ++i) { // This loop generates the warning above
tmp += matrixA[row][i] * matrixB[i][col];
}
matrixResult[row][col] = tmp;
}
}
Any help is welcomed.