Page 1 of 1

[SOLVED] MPI configuration in v.6.0.x

Posted: Wed Feb 10, 2010 8:08 am
by mmikami
Dear all,

When I tried to configure v.6.0.1 with the following option:
./configure --enable-mpi --with-mpi-prefix="/usr/local/mpich-intel91" ,
it failed like this:
==============================================================================
=== Connector startup ===
==============================================================================
configure: Initializing MPI support
configure: looking for MPI in /usr/local/mpich-intel91
configure: error: use --with-mpi-prefix or set FC, not both

The above option had been all right with v.5.x.y... Is there anything changed ?

My platform is like this:
$ uname -a
Linux hakuho 2.6.9-67.ELsmp #1 SMP Fri Nov 16 12:49:06 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

$ ifort -V
Intel(R) Fortran Compiler for Intel(R) EM64T-based applications, Version 9.1 Build 20071016 Package ID: l_fc_c_9.1.052
Copyright (C) 1985-2007 Intel Corporation. All rights reserved.

$ ls /usr/local/mpich-intel91/
bin doc etc examples include lib logfiles man sbin share www

Regards,
Masayoshi Mikami

P.S. I tried also with
./configure --enable-mpi="manual" --with-mpi-fc="/usr/local/mpich-intel91/bin/mpif90" --with-mpi-fcflags="-I/usr/local/mpich-intel91/include" --with-mpi-fc-ldflags="-L/usr/local/mpich-intel91/lib -lmpi" --with-mpi-fc-ldflags="-L/usr/local/mpich-intel91/bin/mpirun"

But it failed like this:
...(snip)...
configure: * --with-etsf-xc-includes renamed --with-libxc-includes
configure: * --with-etsf-xc-libs renamed --with-libxc-libs
configure: * --with-mpi-cc-ldflags removed
configure: * --with-mpi-cc-libs removed
configure: * --with-mpi-cflags removed
configure: * --with-mpi-cppflags removed
configure: * --with-mpi-cxx-ldflags removed
configure: * --with-mpi-cxx-libs removed
configure: * --with-mpi-cxxflags removed
configure: * --with-mpi-fc-ldflags removed
configure: error: removed option --with-mpi-fc-ldflags has been used

Re: MPI configuration in v.6.0.x

Posted: Wed Feb 10, 2010 10:41 am
by pouillon
MPI support has been heavily refactored since 5.8. Most of the efforts have been on improving the consistency within the build system, and now MPI is handled as the other external packages.

In order to be able to use --with-mpi-prefix, you should make sure that the CC, CXX, and FC environment variables are not set. If this is done system-wide by your administrator, you should unset them before running configure.

The --enable-mpi option now only accepts "yes" or "no". If you want to configure things manually, which is not recommended, you should:
  • manually set CC, CXX, and FC;
  • replace --with-mpi-fcflags by --with-mpi-includes;
  • replace --with-mpi-fc-ldflags by --with-mpi-libs;
  • replace your second --with-mpi-fc-ldflags by --with-mpi-runner.

If in doubt, run ./configure --help and/or consult ~abinit/doc/config/build-config.ac.

Re: MPI configuration in v.6.0.x

Posted: Wed Feb 10, 2010 12:08 pm
by mmikami
Merci, Yann.

I remembered that "~/.abinit/build/(hostname).ac" (for v.5.x.y) was left enabled, wherein FC was set!
I tentatively disabled the configuration file, and run again ./configure --enable-mpi --with-mpi-prefix="/usr/local/mpich-intel91", then the configuration was completed.

Thanks,
Masayoshi