One way to deal with this is to install R itself with mpicc. Then all 
packages are installed with mpicc and get the required MPI libraries and 
includes by default. I have done this with R-2.13.0 on an Opteron 
cluster running CentOS-5 a while ago and so far it has worked out great.

I crosspost to r-sig-hpc and welcome others to comment if there are 
potential downsides to this solution.

George


> Michael Spiegel michael.m.spiegel at gmail.com 
> <mailto:r-devel%40r-project.org?Subject=Re%3A%20%5BRd%5D%20R%20CMD%20INSTALL%20configure.args%20and%20CC%20customization&In-Reply-To=%3CCANwu5-rGUYrC73vRo04GJCdW_ZQerycbVU4K_2Dun1ytqNXQ7g%40mail.gmail.com%3E>
> /Fri Sep 9 20:40:42 CEST 2011/ 
> I am running into the following issue that has been previously
> reported on the R-devel mailing list. The short version is that I'm
> writing a package for MPI, and I'd like to change CC and SHLIB_LD to
> "mpicc". Trying to change them in Makevars.in has no effect, because
> the values are clobbered by /etc/R/Makeconf. Will the following
> changes to Makeconf.in introduce any problems?
>
> --Michael

-- 
George Ostrouchov
Statistics and Data Sciences Group
Computer Science and Mathematics Division
Oak Ridge National Laboratory
(865) 574-3137  http://www.csm.ornl.gov/~ost


        [[alternative HTML version deleted]]

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

Reply via email to