Skip to content
Prev 8579 / 10988 Next

[Rcpp-devel] RcppParallel on Solaris

On Mon, Apr 13, 2015 at 8:11 AM, JJ Allaire <jj.allaire at gmail.com> wrote:

            
I think the way to go is just to strip the arch flags from the TBB config,
like here:
https://github.com/gaborcsardi/RcppParallel/commit/8d9b818042390ded7d00f9ef3cc4d5f9e4096b53
and then make sure that TBB is compiled with the appropriate compilers and
flags, taken from
R CMD config CXX
R CMD config CXXFLAGS
...
etc.

On Solaris R is 32 bit by default, and if it is not, the appropriate arch
flags will be reported by R CMD config. This solutions also has the
advantage that if CRAN's config changes, you likely don't need to update
anything.

If you still want to detect the arch, then AFAIK it is in .Platform$r_arch.
This is empty on the 32 bit Solaris, I guess because this is the default
arch on this platform. Maybe it is set something else on 64 bit Solaris,
but I am not sure. To decide between 32 bit and 64 bit I think you can use
.Machine$sizeof.pointer.

G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150413/847b5b61/attachment-0001.html>