unsigned OpenMP for-loop variable not allowed on Windows
The following does not compile under Visual Studio 2010 and before:
unsigned k;
#pragma omp parallel for reduction (+:res)
for (k = 1; k<n; k++) {
res += v[k] * w[k];
}
Unsigned loop variables are part of the OpenMP specification 3.0. See this discussion for more details.