Ciao Antonio,
I did compile Siesta 2.0.1 with gfortran and openmpi, no problems.
Check the arch.make in the attachment.
Regards,
Roberto
On Wed, 28 May 2008, antonio aliano wrote:
> I am A.Aliano, a researcher from politecnico di Torino and i'm trying to use
> SIESTA in parallel.
> Unfortunately i met some difficulties to compile and link the library mpi of
> SIESTA. The main problem seems to be that I'm not able to compile the
> version of siesta i have (2.0) with openmpi libreries. How can i do to It is
> possible to use siesta with openmpi? Or should i use the usual mpi librery?
>
> Thanks for your attention
>
> regards
>
> A.A.
>
#
# This file is part of the SIESTA package.
#
# Copyright (c) Fundacion General Universidad Autonoma de Madrid:
# E.Artacho, J.Gale, A.Garcia, J.Junquera, P.Ordejon, D.Sanchez-Portal
# and J.M.Soler, 1996-2006.
#
# Use of this software constitutes agreement with the full conditions
# given in the SIESTA license, as signed by all legitimate users.
#
.SUFFIXES:
.SUFFIXES: .f .F .o .a .f90 .F90
SIESTA_ARCH=i686-pc-linux-gnu--Intel
FPP=
FPP_OUTPUT=
FC=mpif90
RANLIB=ranlib
SYS=bsd
FFLAGS=-O2
FPPFLAGS= -DFC_HAVE_FLUSH -DFC_HAVE_ABORT -DMPI
LDFLAGS=
FCFLAGS_fixed_f=
FCFLAGS_free_f90=
FPPFLAGS_fixed_F=
FPPFLAGS_free_F90=
BLAS_LIBS=-lcblas -lf77blas -latlas
LAPACK_LIBS=-llapack
BLACS_LIBS=-lblacsF77init -lblacsCinit -lblacs
SCALAPACK_LIBS=-lscalapack
COMP_LIBS=
NETCDF_LIBS=
NETCDF_INTERFACE=
LIBS=$(SCALAPACK_LIBS) $(BLACS_LIBS) $(LAPACK_LIBS) $(BLAS_LIBS) $(NETCDF_LIBS)
#SIESTA needs an F90 interface to MPI
#This will give you SIESTA's own implementation
#If your compiler vendor offers an alternative, you may change
#to it here.
MPI_INTERFACE=libmpi_f90.a
MPI_INCLUDE=/usr/local/include
#Dependency rules are created by autoconf according to whether
#discrete preprocessing is necessary or not.
.F.o:
$(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_fixed_F) $<
.F90.o:
$(FC) -c $(FFLAGS) $(INCFLAGS) $(FPPFLAGS) $(FPPFLAGS_free_F90) $<
.f.o:
$(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_fixed_f) $<
.f90.o:
$(FC) -c $(FFLAGS) $(INCFLAGS) $(FCFLAGS_free_f90) $<