Compilation of BLACS fails
I am trying to build MPIBLACS and set the correct parameters in Bmake.inc. However, it fails because it cannot find a header file. Thing is that the header file actually exists and set it paths
the header file exists in
The content of Bmake.inc is as below (I removed the comments)
Any idea about that?
- Code: Select all
root@cluster:BLACS# make mpi
( cd SRC/MPI ; make )
make[1]: Entering directory `/export/apps/computer/BLACS/SRC/MPI'
( cd INTERNAL ; make -f ../Makefile I_int "dlvl=/export/apps/computer/BLACS" )
make[2]: Entering directory `/export/apps/computer/BLACS/SRC/MPI/INTERNAL'
gfortran -c -O bi_f77_mpi_attr_get.f
mpif.h:59: Error: Can't open included file 'mpif-common.h'
make[2]: *** [bi_f77_mpi_attr_get.o] Error 1
make[2]: Leaving directory `/export/apps/computer/BLACS/SRC/MPI/INTERNAL'
make[1]: *** [INTERN] Error 2
make[1]: Leaving directory `/export/apps/computer/BLACS/SRC/MPI'
make: *** [MPI] Error 2
the header file exists in
- Code: Select all
root@cluster:BLACS# find /export/apps/computer/openmpi-1.6.5 -name mpif-common.h
/export/apps/computer/openmpi-1.6.5/include/mpif-common.h
/export/apps/computer/openmpi-1.6.5/ompi/include/mpif-common.h
The content of Bmake.inc is as below (I removed the comments)
- Code: Select all
SHELL = /bin/sh
BTOPdir = /export/apps/computer/BLACS
COMMLIB = MPI
PLAT = LINUX
BLACSdir = $(BTOPdir)/LIB
BLACSDBGLVL = 0
BLACSFINIT = $(BLACSdir)/blacsF77init_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a
BLACSCINIT = $(BLACSdir)/blacsCinit_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a
BLACSLIB = $(BLACSdir)/blacs_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a
MPIdir = /export/apps/computer/openmpi-1.6.5
MPILIBdir = $(MPIdir)/lib/
MPIINCdir = $(MPIdir)/include
MPILIB = $(MPILIBdir)/libmpich.a
BTLIBS = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT) $(MPILIB)
INSTdir = $(BTOPdir)/INSTALL/EXE
TESTdir = $(BTOPdir)/TESTING/EXE
FTESTexe = $(TESTdir)/xFbtest_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL)
CTESTexe = $(TESTdir)/xCbtest_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL)
SYSINC = -I$(MPIINCdir)
INTFACE = -Df77IsF2C
SENDIS =
BUFF =
TRANSCOMM = -DCSameF77
WHATMPI =
SYSERRORS =
DEBUGLVL = -DBlacsDebugLvl=$(BLACSDBGLVL)
DEFS1 = -DSYSINC $(SYSINC) $(INTFACE) $(DEFBSTOP) $(DEFCOMBTOP) $(DEBUGLVL)
BLACSDEFS = $(DEFS1) $(SENDIS) $(BUFF) $(TRANSCOMM) $(WHATMPI) $(SYSERRORS)
F77 = gfortran
F77NO_OPTFLAGS =
F77FLAGS = $(F77NO_OPTFLAGS) -O
F77LOADER = $(F77)
F77LOADFLAGS =
CC = gcc
CCFLAGS = -O4
CCLOADER = $(CC)
CCLOADFLAGS =
ARCH = ar
ARCHFLAGS = r
RANLIB = ranlib
Any idea about that?