Dirk, I pick one of the packages you suggested and asked my colleague to 
test it on MacOS X. As you can see, it did not use more than 1 CPU. I 
inspected the Makevars and found that it relied on 
SHLIB_OPENMP_CXXFLAGS. This variable is set to -fopenmp on my laptop.

Does CRAN add -fopenmp to SHLIB_OPENMP_CXXFLAGS (when there is compiler 
support) or not? It seems not.

-- 
Joshua N. Pritikin
Department of Psychology
University of Virginia
485 McCormick Rd, Gilmer Hall Room 102
Charlottesville, VA 22904
http://people.virginia.edu/~jnp3bc
--- Begin Message ---
I tried. Although it is pretty quick at simulating millions of records, it 
never hits the CPU more than 100%:

xx <- rmvn(100000000,rep(0,6),diag(6))

Michael Neale
mcne...@mac.com



> On Aug 24, 2015, at 12:13 PM, Joshua N Pritikin <jpriti...@pobox.com> wrote:
> 
> On Mon, Aug 24, 2015 at 11:53:33AM -0400, Michael Neale wrote:
>> I guess the issue is whether there is ANY package on CRAN which 
>> compiles with OpenMP under OS X.  It sounds like there isn’t…
> 
> Are you sure?
> 
> Can you try mvnfast?
> 
> -- 
> Joshua N. Pritikin
> Department of Psychology
> University of Virginia
> 485 McCormick Rd, Gilmer Hall Room 102
> Charlottesville, VA 22904
> http://people.virginia.edu/~jnp3bc


--- End Message ---
______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to