I have a lot of code around looking like:
Code: Select all
#pragma omp parallel for
for (
// Visual C++ 2013 supports only OpenMP 2.5
#if _OPENMP >= 200805
unsigned
#endif
int i = 0; i < photons.size(); ++i) {
}
Code: Select all
#pragma omp parallel for
for (
// Visual C++ 2013 supports only OpenMP 2.5
#if _OPENMP >= 200805
unsigned
#endif
int i = 0; i < photons.size(); ++i) {
}
I confirm, I was looking at the same topic this morning and it is still 2.5.alpistinho wrote: ↑Thu Jan 24, 2019 12:34 pm Hey,
I did a quick search and found plenty of people asking about an update for OpenMP on VS, so I think the answer is no .
I've found however that it is possible to use Clang with VS, so maybe that's an option.
https://marketplace.visualstudio.com/it ... -toolchain
Code: Select all
#if _OPENMP >= 200805
typedef unsigned int itertype;
#else
// Visual C++ 2013 supports only OpenMP 2.5
typedef int itertype;
#endif
#pragma omp parallel for
for (itertype i = 0; i < pixelCount; ++i) {
// ...
}