[GenABEL-dev] Building OmicABELnoMM without MPI

L.C. Karssen l.c.karssen at polyomica.com
Fri Oct 24 10:55:21 CEST 2014


Hi Alvaro,

Here's a follow-up to my previous question about OpenMPI vs MICH:

It turns out that if I don't have any MPI library installed, ./configure
prints the following output:

  checking for mpic++... no
  checking for mpicxx... no

but it continues. However, make subsequently fails:

 src/Definitions.h:31:17: fatal error: mpi.h: No such file or directory
  #include <mpi.h>


I think there are two solutions:

1) Make MPI libraries a requirement for OAnMM: so ./configure should
abort with an error if AC_PROG_CXX([mpic++ mpicxx]) fails.

2) Write a bit of code using #ifdefs to disable parts that need MPI if
the libs are not installed (or when the user explicitly runs ./configure
--disable-mpi, for exmaple).


I'd say the first one is rather drastic, the second one being nicer to
the user. However, I didn't look into the code base to see whether it is
possible to selectively disable MPI use.

What do you think?


Best,

Lennart.


-- 
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Lennart C. Karssen
PolyOmica
Groningen
The Netherlands

l.c.karssen at polyomica.com
GPG key ID: 1A15AF2A
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.r-forge.r-project.org/pipermail/genabel-devel/attachments/20141024/486127e5/attachment.sig>


More information about the genabel-devel mailing list