Compilation of BLACS fails

Post here if you have a question about the installation process

Compilation of BLACS fails

Postby mahmood » Tue Jul 12, 2016 6:57 am

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

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?
mahmood
 
Posts: 3
Joined: Tue Jul 12, 2016 6:46 am

Re: Compilation of BLACS fails

Postby admin » Tue Jul 12, 2016 10:48 am

Did you try to use the Scalapack Python Installer?
You can find it here: http://www.netlib.org/scalapack/#_scala ... _for_linux
Hope it helps
admin
Site Admin
 
Posts: 609
Joined: Wed Dec 08, 2004 7:07 pm

Re: Compilation of BLACS fails

Postby mahmood » Tue Jul 12, 2016 3:58 pm

Hi admin,
I do have scalapack. But it seems that the code that I am trying to compile is a bit old and it require BLACS itself.
How can I find previous versions of BLACS?

Do you have any idea about the installation process?
mahmood
 
Posts: 3
Joined: Tue Jul 12, 2016 6:46 am

Re: Compilation of BLACS fails

Postby mahmood » Wed Jul 13, 2016 2:13 am

I found the solution...
I mistakenly changed the default

Code: Select all
F77            = g77

to
Code: Select all
F77            = gfortran


because I didn't have g77. The correct compiler is mpif77 though

Code: Select all
F77            = mpif77
mahmood
 
Posts: 3
Joined: Tue Jul 12, 2016 6:46 am

Re: Compilation of BLACS fails

Postby ChrisBragg » Thu Jul 14, 2016 1:29 am

I don't know the exact answer but hope u can find the solution by this link.


https://www.open-mpi.org/faq/?category=mpi-apps
ChrisBragg
 
Posts: 2
Joined: Wed Jul 13, 2016 5:05 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 5 guests