[R-pkg-devel] [[openmx-dev]] Re: [[openmx-dev]] Re: openmp
Mark van der Loo
mark.vanderloo at gmail.com
Mon Aug 24 21:38:35 CEST 2015
At least on linux, CRAN builds using openMP. I got a valgrind report once
[shame on me btw] showing that 9 (out of 10) threads were running examples.
So my best guess is that it will do the same for Windows since it also has
openMP support according to WRE[1]. I wouldn't know why not, except for
the reasons Dirk already mentioned. It will not do this for OS X since WRE
states clearly that
OS X nowadays uses clang, and the Apple builds currently have no OpenMP
support.
so if nobody has openMP support on OS X, for sure CRAN doesn't have it.
/M
[1]https://cran.r-project.org/doc/manuals/R-exts.html#OpenMP-support
Op ma 24 aug. 2015 om 19:04 schreef Joshua N Pritikin <jpritikin at pobox.com>:
> 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
> http://people.virginia.edu/~jnp3bc
>
> ______________________________________________
> R-package-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list