[Rd] sample.int() algorithms

2015-09-09 Thread Nathan Kurz
I was experiencing a strange pattern of slowdowns when using sample.int(), where sampling from a one population would sometimes take 1000x longer than taking the same number of samples from a slightly larger population. For my application, this resulted in a runtime of several hours rather than

Re: [Rd] Build R with MKL and ICC

2015-09-09 Thread Nathan Kurz
As a short and simple approach, I just compiled the current R release on Ubuntu with ICC and MKL using just this: $ tar -xzf R-3.2.2.tar.gz $ cd R-3.2.2 $ CC=icc CXX=icpc AR=xiar LD=xild CFLAGS="-g -O3 -xHost" CXXFLAGS="-g -O3 -xHost" ./configure --with-blas="-lmkl_rt -lpthread" --with-lapack --en

[Rd] Profiling function that contains both C++ and Fortran Code

2015-09-09 Thread Julian Karch
Hello, I am trying to profile a function of OpenMx (http://openmx.psyc.virginia.edu) for CPU time. My operating system is OS X 10.10. OpenMx contains C++ and Fortran code. I have read the section regarding profiling compiled code in the manual (https://cran.r-project.org/doc/manuals/r-release

Re: [Rd] Build R form source - manuals

2015-09-09 Thread arnaud gaboury
On Wed, Sep 9, 2015 at 9:11 AM, Prof Brian Ripley wrote: > On 09/09/2015 07:40, arnaud gaboury wrote: >> >> I built R form source succesfully on my Fedora 22 box. No errors. > > > Which version of R? 3-2-1 >> >> >> I can read there is an issue with some manuals at build time when >> running makei

Re: [Rd] Build R form source - manuals

2015-09-09 Thread Prof Brian Ripley
On 09/09/2015 07:40, arnaud gaboury wrote: I built R form source succesfully on my Fedora 22 box. No errors. Which version of R? I can read there is an issue with some manuals at build time when running makeinfo, especially these two: doc/manual/R-exts.texi cp doc/manual/R-intro.texi Some dis