[Wien] Compilation: how to specify a path to mpif.h?
Robert Laskowski
rolask at theochem.tuwien.ac.at
Thu Oct 9 09:44:53 CEST 2008
Hi,
did you compiled it using mpif90 script, usually this should be set the enviroment for mpi during compilation.
regards
Robert
On Wednesday 08 October 2008 17:04:37 Yurko Natanzon wrote:
> Dear wien2k users,
> I've successfully compiled Wien2k and now want to recompile it for
> parallel execution. I have everything required for this (mpich,
> scalapack). It seems, only lapw0, lapw1 and lapw2 should be
> recompiled, yes? So, I get the errors like this:
>
> PGF90-S-0017-Unable to open include file: mpif.h (rean0.F: 23)
>
> I know where mpif.h is located but how to specify a path? I've tried
> it in a different ways, but with no success. So i ended up in
> modifying .f files by hand replacing the code:
> #ifdef Parallel
> include 'mpif.h'
> #endif
> by the following:
> #ifdef Parallel
> include '/opt/mpich/pgi64/ch_p4/include/mpif.h'
> #endif
>
> It seems to work, but this is not convenient, especially if i want to
> install updates. So, could you propose me how to do it in siteconfig?
> My siteconfig settings for parralel execution are shown below:
>
> shared memory: yes
> compiler: /opt/pgi/linux86-64/7.0/bin/pgf95
> RP RP_LIB(SCALAPACK+PBLAS):
> -L/home/users/natanzon/dvd/siesta/lib-pgf -L/opt/mpich/pgi64/ch_p4/lib
> -lblacs -lblacsF77init -lblacsCinit -lblacsF77init -lblacs -lscalapack
> -lmpich
> FP FPOPT(par.comp.options): -Mfreeform -fast -Kieee -Wl,
> -R/opt/mpich/pgi64/ch_p4/include
>
> I have a Linux cluster with AMD Opterons, pgf compiler, mpich and ACML
> libraries installed.
>
> regards,
> Yurko
>
--
Dr Robert Laskowski
Vienna University of Technology,
Institute of Materials Chemistry,
Getreidemarkt 9/165-TC, A-1060 Vienna
tel. +43 1 58801 15686
Fax +43 1 58801 15698
More information about the Wien
mailing list