Encapsulate OpenMP pragma to avoid compilation errors
Required prerequisites
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker and discussions to verify that this hasn't already been reported. +1 or comment there if it has.
Problem description
To avoid having a compilation error, it is necessary to encapsulate the OPENMP pragma to avoid compilation errors when not setting the openmp option (-fopenmp with gcc)
Reproducible example code
#ifdef _OPENMP
#pragma omp parallel for collapse(2)
#endif