[SOLVED] MPI configuration in v.6.0.x

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
mmikami
Posts: 8
Joined: Thu Jan 14, 2010 3:03 pm

[SOLVED] MPI configuration in v.6.0.x

Post by mmikami » Wed Feb 10, 2010 8:08 am

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
Last edited by mmikami on Wed Feb 10, 2010 8:23 am, edited 2 times in total.

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: MPI configuration in v.6.0.x

Post by pouillon » Wed Feb 10, 2010 10:41 am

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.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

mmikami
Posts: 8
Joined: Thu Jan 14, 2010 3:03 pm

Re: MPI configuration in v.6.0.x

Post by mmikami » Wed Feb 10, 2010 12:08 pm

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

Locked