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

Joshua N Pritikin jpritikin at pobox.com
Mon Aug 24 19:03:00 CEST 2015

On Mon, Aug 24, 2015 at 09:57:05AM -0700, Zhian Kamvar wrote:
> 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.

Yes, of course, but you're missing the point of my enquiry. My question 
is whether it is possible for CRAN to build and distribute openmp 
enabled binaries.

Joshua N. Pritikin
Department of Psychology
University of Virginia
485 McCormick Rd, Gilmer Hall Room 102
Charlottesville, VA 22904

More information about the R-package-devel mailing list