Some problem when using Scalapack_installer

Post here if you have some questions about the ScaLAPACK installer

Some problem when using Scalapack_installer

Postby flameflash » Fri Jan 21, 2011 12:28 pm

Dear lapack/scalapack user,

I have met some problem when compiling Scalapack with Scalapack_installer_0.96 on Ubuntu 10.04. I wonder if anyone could help me about it.

I have compiled Blas(with gfortran), Lapack(with gfortran), and Blacs(with mpif77, mpicc) respectively. I used the software MPICH2 for MPI library.

------------------------------------------------------------------------------------------------------------------------
cd scalapack_installer_0.96

sudo ./setup.py --prefix=/opt/scalapack --mpibindir=/opt/mpich/bin --blacslib=/usr/lib/libblacs.a --blacsf77=/usr/lib/libblacsf77.a --blacsclib=/usr/lib/libblacsc.a --blaslib=/usr/lib/atlas/libblas.a --lapacklib=/usr/lib/atlas/liblapack.a


I got:

========================================
BLAS installation/verification
========================================
Checking if provided BLAS works... yes

========================================
Lapack installation/verification
========================================
Checking if provided LAPACK works... yes

========================================
BLACS installation/verification
========================================
Checking if provided BLACS works...

BLACS: provided BLACS cannot be used! aborting...
error is:
****************************************
/tmp/ccyk8TA3.o: In function `MAIN__':
tmpf.f:(.text+0x28): undefined reference to `blacs_pinfo_'
tmpf.f:(.text+0x4a): undefined reference to `blacs_get_'
tmpf.f:(.text+0x74): undefined reference to `blacs_gridinit_'
tmpf.f:(.text+0x7f): undefined reference to `blacs_gridexit_'
collect2: ld returned 1 exit status

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

Blas and Lapack seem to work well, but Blacs fails as it counters the 'undefined reference ' problem.
I have no idea how to solve it. Any help would be appreciated.

regards

flameflash
flameflash
 
Posts: 3
Joined: Fri Jan 21, 2011 12:03 pm

Re: Some problem when using Scalapack_installer

Postby admin » Fri Jan 21, 2011 12:32 pm

Just try:

Code: Select all
sudo ./setup.py --prefix=/opt/scalapack --mpibindir=/opt/mpich/bin --blaslib=/usr/lib/atlas/libblas.a --downlapack


BLACS will be installed by default if not provided and ATLAS does not contain a full LAPACK implementation, so I recommend to use the LAPACK from netlib.

Julie
admin
Site Admin
 
Posts: 504
Joined: Wed Dec 08, 2004 7:07 pm

Re: Some problem when using Scalapack_installer

Postby flameflash » Fri Jan 21, 2011 12:40 pm

admin wrote:Just try:

Code: Select all
sudo ./setup.py --prefix=/opt/scalapack --mpibindir=/opt/mpich/bin --blaslib=/usr/lib/atlas/libblas.a --downlapack


BLACS will be installed by default if not provided and ATLAS does not contain a full LAPACK implementation, so I recommend to use the LAPACK from netlib.

Julie


Thank you very much for your quick reply.

I have used both Lapack and Blas from netlib previously, but when I run with './setup.py --prefix=/opt/scalapack --mpibindir=/opt/mpich/bin --blaslib=/usr/lib/libblas.a --lapacklib=/usr/lib/liblapack.a ', I met another mutiple definition problem of 'xerbla_'. I just saw there is a quick way to solve by using /usr/lib/atlas/libblas.a and /usr/lib/atlas/liblapack.a instead. But I don't why it works...
flameflash
 
Posts: 3
Joined: Fri Jan 21, 2011 12:03 pm

Re: Some problem when using Scalapack_installer

Postby admin » Fri Jan 21, 2011 2:31 pm

Hi
It hard to know what are inside those libraries if you did not install them yourself.

Did you try mixing atlas BLAS library and LAPACK netlib?
Code: Select all
./setup.py --prefix=/opt/scalapack --mpibindir=/opt/mpich/bin --blaslib=/usr/lib/libblas.a --downlapack


Otherwise, I would not worry.
Julie
admin
Site Admin
 
Posts: 504
Joined: Wed Dec 08, 2004 7:07 pm

Re: Some problem when using Scalapack_installer

Postby flameflash » Sun Jan 23, 2011 9:23 am

admin wrote:Hi
It hard to know what are inside those libraries if you did not install them yourself.

Did you try mixing atlas BLAS library and LAPACK netlib?
Code: Select all
./setup.py --prefix=/opt/scalapack --mpibindir=/opt/mpich/bin --blaslib=/usr/lib/libblas.a --downlapack


Otherwise, I would not worry.
Julie


I have tried totally automatic installation with scalapack_installer, and compared the "make.inc " files with those I wrote myself previously. Now I see the difference. Thank you for your advice.
flameflash
 
Posts: 3
Joined: Fri Jan 21, 2011 12:03 pm

Re: Some problem when using Scalapack_installer

Postby admin » Thu Feb 03, 2011 2:13 pm

This works under Linux and Mac OS/X.
Julie
admin
Site Admin
 
Posts: 504
Joined: Wed Dec 08, 2004 7:07 pm


Return to ScaLAPACK installer

Who is online

Users browsing this forum: No registered users and 1 guest

cron