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?
clang-clis probably Clang on Windows. You can also use GCC on Windows. Basically, they are telling you to use another compiler that supports OpenMP on Windows. Visual Studio serves only as an IDE in that case.clis the command line name for the Visual-C++ compiler.