Re: [OMPI users] Open mpi 123 install error for BLACS

2009-02-02 Thread Rainer Keller
Hi Jack,
On Saturday 31 January 2009 02:03:23 pm Jack Bryan wrote:
> 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.
Actually, BLACS and PCSDP compile fine here (w/ Open MPI-1.2.8)

> 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
The libtool files (.la) will not help You in this case.
If You want to link against the Open MPI's C++ Interface, You'd just need to 
pass
   mpif77  -L/home/openmpi_123/lib -lmpi_cxx
The compiler-wrapper mpif77 actually includes the library-search path (-L):
Use mpif77 -showme:
 gfortran -I/opt/openmpi-1.2.8/include -L/opt/openmpi-1.2.8/lib -lmpi_f77 ...

> 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.
These are the libtool '.la' files, which help when linking using libtool.
The lib-library however should contain the shard-library files (libmpi.so* 
libmpi_cxx.so*), right?

So You can link against the shared libraries.

With best regards,
Rainer
-- 

Rainer Keller, PhD  Tel: (865) 241-6293
Oak Ridge National Lab  Fax: (865) 241-4811
PO Box 2008 MS 6164   Email: kel...@ornl.gov
Oak Ridge, TN 37831-2008AIM/Skype: rusraink




[OMPI users] Open mpi 123 install error for BLACS

2009-01-31 Thread Jack Bryan

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

---





_
Windows Live™ Hotmail®…more than just e-mail. 
http://windowslive.com/howitworks?ocid=TXT_TAGLM_WL_t2_hm_justgotbetter_howitworks_012009