The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

BLACS install error

Open discussion regarding features, bugs, issues, vendors, etc.

BLACS install error

Postby Jack » Sat Jan 31, 2009 3:01 pm

Hi,

I am installing BLACS in order to install PCSDP - a parallell interior point
solver for linear programming.

I need to install it on Open MPI 1.2.3 platform.

I ahve installed BLAS, LAPACK successfully.

Now I need to install BLACS.

I can run "make mpi" successfully.

But, When I run "make tester".

[BLACS]$ make tester
( cd TESTING ; make )
make[1]: Entering directory `/home/PCSDP/BLACS/TESTING'
mpif77 -o /home/PCSDP/BLACS/TESTING/EXE/xFbtest_MPI-LINUX-0 blacstest.o btprim_MPI.o tools.o /home/PCSDP/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /home/PCSDP/BLACS/LIB/blacs_MPI-LINUX-0.a /home/PCSDP/BLACS/LIB/blacsF77init_MPI-LINUX-0.a /home/openmpi_123/lib/libmpi_cxx.la
/home/openmpi_123/lib/libmpi_cxx.la: file not recognized: File format not recognized
collect2: ld returned 1 exit status

make[1]: *** [/home/PCSDP/BLACS/TESTING/EXE/xFbtest_MPI-LINUX-0] Error 1
make[1]: Leaving directory `/home/PCSDP/BLACS/TESTING'
make: *** [tester] Error 2
-------------------------------------

In the "Makefile" of TESTING/, I have changed :

tools.o : tools.f
#$(F77) $(F77NO_OPTFLAGS) -c $*.f
$(F77) $(F77NO_OPTFLAGS) -fno-globals -fno-f90 -fugly-complex -w -c $*.f

blacstest.o : blacstest.f
#$(F77) $(F77NO_OPTFLAGS) -c $*.f
$(F77) $(F77NO_OPTFLAGS) -fno-globals -fno-f90 -fugly-complex -w -c $*.f


------------------------------------------

In "Bconfig.h", I have changed

include "/home/openmpi_123/include/mpi.h"

In OpenMPI 1.2.3, the lib directory does not include: "*.a" library.
only "*.la" library.


Any help is appreciated.

Jack

Jan. 30 2009


My "Bmake.inc" is:

---------------------------------
SECTION 1: PATHS AND LIBRARIES
SHELL = /bin/sh
BTOPdir = /home/PCSDP/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 = /home/openmpi_123
MPILIBdir = $(MPIdir)/lib
MPIINCdir = $(MPIdir)/include

MPILIB = $(MPILIBdir)/libmpi_cxx.la

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)

SECTION 3: COMPILERS

F77 = mpif77
F77NO_OPTFLAGS =
F77FLAGS = $(F77NO_OPTFLAGS) -O
F77LOADER = $(F77)
F77LOADFLAGS =

CC = mpicc
CCFLAGS = -O4
CCLOADER = $(CC)
CCLOADFLAGS =

ARCH = ar
ARCHFLAGS = r
RANLIB = ranlib

-------------------------------
Jack
 
Posts: 4
Joined: Sat Jan 31, 2009 2:37 pm

Re: BLACS install error

Postby buttari » Sat Jan 31, 2009 3:10 pm

Jack,
the easiest thing you can do is use the scalapack installer. This will also install scalapack but if you don't need it you have two options:
1) you let it do its job and the you delete manually scalapack
2) if you know some basic python you can hack the installer. basically you just have to comment out this line:
scal_inst = Scalapack()

Best regards

Alfredo
buttari
 
Posts: 51
Joined: Tue Jul 11, 2006 2:11 pm

Re: BLACS install error

Postby Jack » Sat Jan 31, 2009 5:09 pm

thanks,

But, without BLACS, I can not install scalapack.

In the readme file of scalapack:

"It is assumed that the BLAS, BLACSi and LAPACK libraries (and possibly
MPI or PVM) are available on your machine. These libraries
are NOT included with this distribution. They can be obtained
from the respective blas, blacs, mpi, or pvm directory on netlib."

Any help is appreciated.

Jack

Jan. 31 2009
Jack
 
Posts: 4
Joined: Sat Jan 31, 2009 2:37 pm

Re: BLACS install error

Postby buttari » Sat Jan 31, 2009 5:25 pm

Jack wrote:thanks,

But, without BLACS, I can not install scalapack.

In the readme file of scalapack:

"It is assumed that the BLAS, BLACSi and LAPACK libraries (and possibly
MPI or PVM) are available on your machine. These libraries
are NOT included with this distribution. They can be obtained
from the respective blas, blacs, mpi, or pvm directory on netlib."

Any help is appreciated.

Jack

Jan. 31 2009


Jack,
do you only need the BLACS or do you need ScaLAPACK as well?
In any case, the scalapack installer will install both of them for you. You can get it on the scalapack web page.

Alfredo
buttari
 
Posts: 51
Joined: Tue Jul 11, 2006 2:11 pm

Re: BLACS install error

Postby Jack » Sat Jan 31, 2009 6:12 pm

Hi,

Thanks,

I need both of them.

But, I install them on open mpi 1.2.3. But, the BLACS need MPICH .

I am afraid that BLACS can not work correctly even though they can be installed by the SCALAPACK installer .

Any help is appreciated.

Jack.

Jan. 31 2009
Jack
 
Posts: 4
Joined: Sat Jan 31, 2009 2:37 pm

Re: BLACS install error

Postby buttari » Sat Jan 31, 2009 6:18 pm

Jack wrote:Hi,

Thanks,

I need both of them.

But, I install them on open mpi 1.2.3. But, the BLACS need MPICH .

I am afraid that BLACS can not work correctly even though they can be installed by the SCALAPACK installer .

Any help is appreciated.

Jack.

Jan. 31 2009



Jack,
BLACS and ScaLAPACK will work with any standard MPI. This includes OpenMPI.

Alfredo
buttari
 
Posts: 51
Joined: Tue Jul 11, 2006 2:11 pm

Re: BLACS install error

Postby Jack » Sat Jan 31, 2009 6:59 pm

Hi , thanks

But, in "Bmake.MPI-LINUX" of BLACS:

#=============================================================================
#========================= SECTION 2: BLACS INTERNALS ========================
#=============================================================================
# The following macro definitions set preprocessor values for the BLACS.
# The file Bconfig.h sets these values if they are not set by the makefile.
# User's compiling only the tester can skip this entire section.
# NOTE: The MPI defaults have been set for MPICH.
#=============================================================================

How to reconfigure it so that it supports OpenMPI 123 ?

Any help is appreciated.

Jack

Jan. 31 2009
Jack
 
Posts: 4
Joined: Sat Jan 31, 2009 2:37 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 7 guests