Re: [R-pkg-devel] openmp

2015-08-24 Thread Joshua N Pritikin
On Sun, Aug 23, 2015 at 08:01:08AM +0200, Mark van der Loo wrote: Afaik, openmp is available on windows. According to writing R extensions: There is nothing to say what version of OpenMP is supported: version 3.0 (May 2008) is supported by recent versions of the Linux, _Windows_

Re: [Rd] Child thread libR.so

2015-08-24 Thread Ryan C Metzger
I did some poking around with GDB and confirmed that the advice of setting R_CStackLimit after init, which is echoed in the threading issues section of the R-exts help document, isn't entirely useful because init apparently loads the main package which trips over the broken stack checking. Stack

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

2015-08-24 Thread Dirk Eddelbuettel
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 Windows. Interesting that you opt to ignore OpenMP support on the platform

[Bioc-devel] Bioconductor Build Still Failing on Travis CI

2015-08-24 Thread Charles Determan
This initially came to my attention with this question on StackOverflow ( http://stackoverflow.com/questions/32139378/travis-ci-failing-to-install-bioconductor?noredirect=1#comment52184421_32139378). I have noticed that my own bioconductor package has continued to fail over the past several days

Re: [R-pkg-devel] openmp

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 09:14, Joshua N Pritikin wrote: | On Sun, Aug 23, 2015 at 08:01:08AM +0200, Mark van der Loo wrote: | Afaik, openmp is available on windows. According to writing R | extensions: | | There is nothing to say what version of OpenMP is supported: version | 3.0

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

2015-08-24 Thread Joshua N Pritikin
On Mon, Aug 24, 2015 at 09:29:34AM -0500, Dirk Eddelbuettel wrote: On 24 August 2015 at 09:14, Joshua N Pritikin wrote: | So I take that answer as, No, CRAN cannot possibly enable openmp for | binary builds. Is that correct? The CRAN maintainers are not withholding OpenMP from you because

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

Re: [Bioc-devel] Bioconductor Build Still Failing on Travis CI

2015-08-24 Thread Martin Morgan
On 08/24/2015 07:37 AM, Charles Determan wrote: This initially came to my attention with this question on StackOverflow ( http://stackoverflow.com/questions/32139378/travis-ci-failing-to-install-bioconductor?noredirect=1#comment52184421_32139378). I have noticed that my own bioconductor package

[R-pkg-devel] [mcne...@mac.com: Re: [[openmx-dev]] Re: [[openmx-dev]] Re: [[openmx-dev]] Re: openmp]

2015-08-24 Thread Joshua N Pritikin
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

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 omp.h #endif This way, all compilers can build the code and those that have OpenMP (even modified versions of clang:

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread arnaud gaboury
On Mon, Aug 24, 2015 at 11:29 AM, Bjørn-Helge Mevik b.h.me...@usit.uio.no wrote: arnaud gaboury arnaud.gabo...@gmail.com writes: - Intel MKL: this is part of Intel Parallel Studio and is a paid software. Now, there is the MKL package distributed by Revolutionanalytics, but I am not certain

[Rd] Web apps on a R server

2015-08-24 Thread arnaud gaboury
I want to deploy some R web apps with a clean separate of concerns: R code // applications. My choice for the R part is to use one of these two tools: - deployR[1] - OpenCPU[2] and JavaScript for web apps. OS is Fedora 22 and web server Nginx. I have been reading documentation about these two

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 11:43, arnaud gaboury wrote: | On Mon, Aug 24, 2015 at 11:29 AM, Bjørn-Helge Mevik | b.h.me...@usit.uio.no wrote: | arnaud gaboury arnaud.gabo...@gmail.com writes: | | - Intel MKL: this is part of Intel Parallel Studio and is a paid | software. Now, there is the MKL

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread arnaud gaboury
On Mon, Aug 24, 2015 at 1:42 PM, Dirk Eddelbuettel e...@debian.org wrote: On 24 August 2015 at 11:43, arnaud gaboury wrote: | On Mon, Aug 24, 2015 at 11:29 AM, Bjørn-Helge Mevik | b.h.me...@usit.uio.no wrote: | arnaud gaboury arnaud.gabo...@gmail.com writes: | | - Intel MKL: this is part

Re: [Rd] Build optimized R : openblas, MKL, ATLAS

2015-08-24 Thread Dirk Eddelbuettel
On 24 August 2015 at 13:46, arnaud gaboury wrote: | On Mon, Aug 24, 2015 at 1:42 PM, Dirk Eddelbuettel e...@debian.org wrote: | | You may be able to switch at will _after_ R has been built and installed. | | something like: | # update-alternatives --config | ? | Reference to this blog[0]

[Rd] OpenMP on Windows reset FPU mode, disabling long double

2015-08-24 Thread Radford Neal
Another comment resulting from my testing of pqR on Windows... With the Rtools implementation of OpenMP, threads started with an OpenMP parallel construct have the state of the FPU reset so that long double arithmetic is actually done only to double precision. The problem can be seen with the

Re: [Rd] Problem with psignal.c for Windows builds

2015-08-24 Thread Radford Neal
One thing I forgot in my previous message about problems with psignal.c on Rtools for Windows... One also needs to change src/gnuwin32/fixed/h/psignal.h At a minimum, one needs the following changes: @@ -122,8 +129,8 @@ typedef struct /* Prototype stuff

Re: [Rd] sprintf error: only 100 arguments allowed

2015-08-24 Thread Hervé Pagès
Hi Martin, Don't know the reason for this limitation. Here is a possible workaound: ## Work around the only 100 arguments are allowed error ## in base::sprintf(). Only works with 'fmt' of length 1. sprintf2 - function(fmt, ...) { MAX_NVAL - 99L args - list(...) if (length(args) =

Re: [Rd] Child thread libR.so

2015-08-24 Thread Simon Urbanek
Ryan, if you read the piece you quoted from more carefully, you'll notice it says Rf_initialize_R - which is quite critical in this matter. Cheers, Simon On Aug 24, 2015, at 9:18 AM, Ryan C Metzger metzger...@gmail.com wrote: I did some poking around with GDB and confirmed that the advice

Re: [Rd] Web apps on a R server

2015-08-24 Thread Simon Urbanek
On Aug 24, 2015, at 4:28 AM, arnaud gaboury arnaud.gabo...@gmail.com wrote: I want to deploy some R web apps with a clean separate of concerns: R code // applications. My choice for the R part is to use one of these two tools: - deployR[1] - OpenCPU[2] and JavaScript for web apps. OS