[Wien] Compilation: how to specify a path to mpif.h?
Yurko Natanzon
yurko.natanzon at gmail.com
Wed Oct 8 17:04:37 CEST 2008
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
--
Yurko (aka Yuriy, Iurii, Jurij etc) Natanzon
PhD Student
Henryk Niewodniczan`ski Institute of Nuclear Physics
Polish Academy of Sciences
ul. Radzikowskiego 152,
31-342 Krako`w, Poland
Email: Yurii.Natanzon at ifj.edu.pl, yurko.natanzon at gmail.com
More information about the Wien
mailing list