SCAEX Compilation

Post here if you have a question about linking your program with LAPACK or ScaLAPACK library

SCAEX Compilation

Postby antony777 » Thu May 26, 2011 7:35 pm

Hi all!

I tried to make Antoine Petitet scaex example, but I got the following error.

antony@terrawulf:~/ANTOINE_PETITET_SCAEX/scaex> make
/opt/cluster/mpich2-1.0.5p4/bin/mpif77 -o /home/antony/mathlibs/scalapack/build/scalapack-1.8.0/TESTING/xdscaex pdscaex.o pdscaexinfo.o pdlaread.o pdlawrite.o /home/antony/mathlibs/scalapack/build/scalapack-1.8.0/libscalapack.a /home/antony/mathlibs/scalapack/lib/blacsF77.a /home/antony/mathlibs/scalapack/lib/blacs.a /home/antony/mathlibs/scalapack/lib/blacsF77.a /home/antony/mathlibs/scalapack/lib/libreflapack.a /home/antony/mathlibs/scalapack/lib/librefblas.a
pdscaex.o: In function `MAIN__':
pdscaex.f:(.text+0x169): undefined reference to `numroc_'
pdscaex.f:(.text+0x197): undefined reference to `numroc_'
pdscaex.f:(.text+0x1c6): undefined reference to `numroc_'
pdscaex.f:(.text+0x232): undefined reference to `descinit_'
pdscaex.f:(.text+0x28f): undefined reference to `descinit_'
pdscaex.f:(.text+0x2ec): undefined reference to `descinit_'
pdscaex.f:(.text+0x33f): undefined reference to `iceil_'
pdscaex.f:(.text+0x6e2): undefined reference to `pdlacpy_'
pdscaex.f:(.text+0x72f): undefined reference to `pdlacpy_'
pdscaex.f:(.text+0x949): undefined reference to `pdlaprnt_'
pdscaex.f:(.text+0xa4e): undefined reference to `pdlaprnt_'
pdscaex.f:(.text+0xaa2): undefined reference to `pdgesv_'
pdscaex.f:(.text+0xc5b): undefined reference to `pdlaprnt_'
pdscaex.f:(.text+0xccb): undefined reference to `pdlamch_'
pdscaex.f:(.text+0xd25): undefined reference to `pdlange_'
pdscaex.f:(.text+0xd7d): undefined reference to `pdlange_'
pdscaex.f:(.text+0xe3d): undefined reference to `pdgemm_'
pdscaex.f:(.text+0xe7e): undefined reference to `pdlange_'
pdlawrite.o: In function `pdlawrite_':
pdlawrite.f:(.text+0x1aa): undefined reference to `infog2l_'
pdlawrite.f:(.text+0x1f1): undefined reference to `iceil_'
pdlawrite.f:(.text+0x271): undefined reference to `iceil_'
pdlawrite.f:(.text+0xad5): undefined reference to `iceil_'
make: *** [pdscaex] Error 1

Any Help would be greatly appreciated!

Regards,
antony777
 
Posts: 3
Joined: Wed May 25, 2011 1:15 am

Re: SCAEX Compilation

Postby Julien Langou » Fri May 27, 2011 4:45 am

It's a long time I did not compile scalapack with a fortran code. I am pretty sure you need to blacsC.a as well. Add two blacsC.a. One after each blacsf77.a.
??
Julien Langou
 
Posts: 733
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Re: SCAEX Compilation

Postby antony777 » Sun May 29, 2011 8:47 pm

Hi again,

I tried with the blacsC.a but still ...

antony@terrawulf:~/ANTOINE_PETITET_SCAEX/scaex> /opt/cluster/mpich2-1.0.5p4/bin/mpif77 -o /home/antony/mathlibs/scalapack/build/scalapack-1.8.0/TESTING/xdscaex pdscaex.o pdscaexinfo.o pdlaread.o pdlawrite.o /home/antony/mathlibs/scalapack/build/scalapack-1.8.0/libscalapack.a /home/antony/mathlibs/scalapack/lib/blacsF77.a /home/antony/mathlibs/scalapack/lib/blacsC.a /home/antony/mathlibs/scalapack/lib/blacs.a /home/antony/mathlibs/scalapack/lib/blacsF77.a /home/antony/mathlibs/scalapack/lib/blacsC.a /home/antony/mathlibs/scalapack/lib/libreflapack.a /home/antony/mathlibs/scalapack/lib/librefblas.a
pdscaex.o: In function `MAIN__':
pdscaex.f:(.text+0x169): undefined reference to `numroc_'
pdscaex.f:(.text+0x197): undefined reference to `numroc_'
pdscaex.f:(.text+0x1c6): undefined reference to `numroc_'
pdscaex.f:(.text+0x232): undefined reference to `descinit_'
pdscaex.f:(.text+0x28f): undefined reference to `descinit_'
pdscaex.f:(.text+0x2ec): undefined reference to `descinit_'
pdscaex.f:(.text+0x33f): undefined reference to `iceil_'
pdscaex.f:(.text+0x6e2): undefined reference to `pdlacpy_'
pdscaex.f:(.text+0x72f): undefined reference to `pdlacpy_'
pdscaex.f:(.text+0x949): undefined reference to `pdlaprnt_'
pdscaex.f:(.text+0xa4e): undefined reference to `pdlaprnt_'
pdscaex.f:(.text+0xaa2): undefined reference to `pdgesv_'
pdscaex.f:(.text+0xc5b): undefined reference to `pdlaprnt_'
pdscaex.f:(.text+0xccb): undefined reference to `pdlamch_'
pdscaex.f:(.text+0xd25): undefined reference to `pdlange_'
pdscaex.f:(.text+0xd7d): undefined reference to `pdlange_'
pdscaex.f:(.text+0xe3d): undefined reference to `pdgemm_'
pdscaex.f:(.text+0xe7e): undefined reference to `pdlange_'
pdlawrite.o: In function `pdlawrite_':
pdlawrite.f:(.text+0x1aa): undefined reference to `infog2l_'
pdlawrite.f:(.text+0x1f1): undefined reference to `iceil_'
pdlawrite.f:(.text+0x271): undefined reference to `iceil_'
pdlawrite.f:(.text+0xad5): undefined reference to `iceil_'


Regards,
antony777
 
Posts: 3
Joined: Wed May 25, 2011 1:15 am

Re: SCAEX Compilation

Postby admin » Tue May 31, 2011 4:34 pm

Those are the example shipped within ScaLAPACK.
Why don't you just type make in the EXAMPLE directory?
Julie
admin
Site Admin
 
Posts: 474
Joined: Wed Dec 08, 2004 7:07 pm


Return to Linking Problem

Who is online

Users browsing this forum: No registered users and 1 guest