Skip to content
Prev 429 / 12125 Next

[R-pkg-devel] [[openmx-dev]] Re: [[openmx-dev]] Re: openmp

The way several packages have implemented OpenMP is to wrap it in pre-compiler statements i.e.:

// Include openMP if the compiler supports it
#ifdef _OPENMP
#include <omp.h>
#endif

This way, all compilers can build the code and those that have OpenMP (even modified versions of clang: https://clang-omp.github.io/) can do so in a parallel fashion.