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

Undefined reference on libscalapack when building mumps

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

Undefined reference on libscalapack when building mumps

Postby sunriis » Tue Jun 10, 2008 10:55 am

Hi, I have an undefined reference on libscalapack when building mumps, the error message I got is:

Code: Select all
mpif90 -o csimpletest -O -I. csimpletest.o ../lib/libcmumps.a -lscalapack /home/
bettella/trilfem/blacs/blacs.a /home/bettella/trilfem/blacs/blacsC.a /home/bette
lla/trilfem/blacs/blacsF77.a /home/bettella/trilfem/blacs/blacs.a -L/home/bettel
la/trilfem/scalapack -L/home/bettella/trilfem/blacs -lblas   -L../PORD/lib/ -lpo
rd
/home/bettella/trilfem/scalapack/libscalapack.a(pcpotf2.o)(.text+0x6e7): In func
tion `pcpotf2_':
: undefined reference to `clacgv_'
/home/bettella/trilfem/scalapack/libscalapack.a(pcpotf2.o)(.text+0x79d): In func
tion `pcpotf2_':
: undefined reference to `clacgv_'
/home/bettella/trilfem/scalapack/libscalapack.a(pcpotf2.o)(.text+0x931): In func
tion `pcpotf2_':
: undefined reference to `clacgv_'
/home/bettella/trilfem/scalapack/libscalapack.a(pcpotf2.o)(.text+0x9de): In func
tion `pcpotf2_':
: undefined reference to `clacgv_'



I then tried this:
Code: Select all
[bettella@labsrv0 myscript]$ nm ~/trilfem/scalapack/libscalapack.a | grep clacgv
                 U clacgv_
                 U clacgv_
                 U pclacgv_
                 U pclacgv_
                 U pclacgv_
                 U clacgv_
                 U pclacgv_
pclacgv.o:
0000000000000000 T pclacgv_
                 U pclacgv_
                 U clacgv_
                 U pclacgv_
                 U clacgv_
                 U clacgv_
                 U pclacgv_
                 U pclacgv_
                 U pclacgv_
                 U pclacgv_
                 U clacgv_
                 U clacgv_
                 U pclacgv_


I can't seem to find out what's wrong; scalapack was installed via setup.py with openmpi
sunriis
 
Posts: 3
Joined: Tue Jun 10, 2008 10:49 am

Postby Julien Langou » Tue Jun 10, 2008 11:00 am

Hello,

Since release 1.8.0, scalapack needs lapack.

There might have a small discrepancy between MUMPS setup.py file
and the current scalapack library, I will contact our MUMPS colleagues to
know if they want to change their setup file.


One easy hack that you can do and still keep the MUMPS installer do the
job for you is to give as the BLAS library, the LAPACK library and the
BLAS library. That should do the trick.

Thanks for pointing this to us.
Julien.
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Postby sunriis » Tue Jun 10, 2008 11:23 am

I think there was a little misunderstanding, I'm installing scalapack via setup.py, but mumps manually (via editing Bmake.inc) (I didn't even know that a mumps installer existed :D)
sunriis
 
Posts: 3
Joined: Tue Jun 10, 2008 10:49 am

Postby Julien Langou » Tue Jun 10, 2008 11:28 am

Well if did not exist, that's a pity! (Thanks for letting me know.)

All this is fine. In the MUMPS Bmake.inc, there should have a spot
for BLASLIB or LIBBLAS or something like this. In this spot, add the
lapack library and the blas library.

Julien.
Julien Langou
 
Posts: 835
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Postby sunriis » Tue Jun 10, 2008 11:35 am

that was it! I had just forgot to add the -llapack on Bmake.inc, how silly of me!
Thanks a lot!!
sunriis
 
Posts: 3
Joined: Tue Jun 10, 2008 10:49 am


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 8 guests