Trying to use features from OpenMP 3
#pragma omp parallel for collapse(2)
in Visual Studio 2017; i'm getting error c3005: 'collapse' unexpected token encountered on openmp 'parallel for' directive
It seems Visual Studio 2017 only supports OpenMP2. In a request to support OpenMP4.5 it was said from VS team
We have no plans at this time.
Another answer said
Fortunately clang-cl has become a viable alternative with OpenMP 4 support. In the worst case you can still enable the /fallback option.
How to use clang-cl with Visual Studio 2017 and what is the fallback option?