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

2015-08-24 Thread Mark van der Loo
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

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

2015-08-24 Thread Joshua N Pritikin
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 > #endif > > This way, all compilers can build the code

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

2015-08-24 Thread Zhian Kamvar
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 #endif This way, all compilers can build the code and those that have OpenMP (even modified versions of clang: https://clang-omp

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

2015-08-24 Thread Joshua N Pritikin
On Mon, Aug 24, 2015 at 10:14:10AM -0500, Dirk Eddelbuettel wrote: > On 24 August 2015 at 11:02, Joshua N Pritikin wrote: > | Currently, we have a configure script for package OpenMx that only > | enables openmp if gcc is the compiler (OS X only). Nice to hear that > | openmp is supported on Wind