[Rd] mpi.h errors on Mavericks packages

Martin Morgan mtmorgan at fhcrc.org
Sat Oct 4 01:58:23 CEST 2014

On 10/03/2014 04:17 PM, Daniel Fuka wrote:
> Dear mac folks,
> I have started porting a large legacy toolset maintained in windows
> and heavily mpi laden so it can be used across platforms in R... so I
> am building a package out of it. On this note, I am noticing that
> almost all of the mpi dependent packages do not compile on the CRAN
> repositories.... with the basic issue that it appears it can not find
> mpi installed:
> configure: error: "Cannot find mpi.h header file"

Hi Dan -- not a mac folk, or particularly expert on the subject, but have you 
looked at section of RShowDoc("R-exts")? The basic idea is

a) check for compiler support via a src/Makevars file that might be like


b) conditionally include mpi header files and execute mpi code with

#include <mpi.h>

and similarly for #pragma's and other mpi-isms littered through your code? 
Likely this gets quite tedious for projects making extensive use of openMP.


> I do not see any chatter about mpi issues in the lists since the
> inception of mavericks.. and possibly this question should go to
> Simon.. but in case I missed a discussion, or if anyone has any
> suggestions on how to proceed, or what might be missing from the Rmpi,
> npRmpi, etc. packages for compilation on Mavericks, it would be
> greatly appreciated if you could let me know.. and maybe I can help
> fix the other packages as well.
> Thanks for any help or pointers to guide me!
> dan
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109

Location: Arnold Building M1 B861
Phone: (206) 667-2793

More information about the R-devel mailing list