[Trilinos-Users] blacs (scalapack) linking issue

Phipps, Eric T etphipp at sandia.gov
Thu Jun 25 09:07:57 MDT 2009


Nico,

You can also just copy the library that needs to be linked twice to a new file name, e.g., libblacs_MPI-LINUX-0-2.a and use the new file name for the repeated library, e.g.,

--with-libs="/opt/blacs-1.1/LINUX_MPI_64BIT/lib/blacs_MPI-LINUX-0.a \
                /opt/blacs-1.1/LINUX_MPI_64BIT/lib/blacsCinit_MPI-LINUX-0.a
\
               /opt/blacs-1.1/LINUX_MPI_64BIT/lib/blacsF77init_MPI-LINUX-0.a
\
              /opt/blacs-1.1/LINUX_MPI_64BIT/lib/blacs_MPI-LINUX-0-2.a"

A symbolic link instead of a copy might work too.

-Eric


On 6/25/09 7:02 AM, "James Willenbring" <jmwille at sandia.gov> wrote:

Nico,

One approach that I have taken in the past is to extract all the object
files from the BLACS libraries and ar all of the objects into a single
library, and then put that on the link line.  It isn't the cleanest of
solutions, but it works.

Jim

-----Original Message-----
From: trilinos-users-bounces at software.sandia.gov
[mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Nico
Schlömer
Sent: Thursday, June 25, 2009 5:25 AM
To: trilinos-users at software.sandia.gov
Subject: [Trilinos-Users] blacs (scalapack) linking issue

Hi all,

I'm trying to get Trilinos to run with Scalapack, hence I need to link the
thing against BLACS. Now, the BLACS library is pretty old and not very well
maintained anymore, which results in a strange dependency clash not being
resolved for many years. As outlined on

http://icl.cs.utk.edu/lapack-
forum/viewtopic.php?p=700&sid=0d590cab4834b1ca0d1674f509f5f48b

for example, at linking stage one of the libraries needs to be called
*twice*,
that is

--with-libs="/opt/blacs-1.1/LINUX_MPI_64BIT/lib/blacs_MPI-LINUX-0.a \
                 /opt/blacs-1.1/LINUX_MPI_64BIT/lib/blacsCinit_MPI-LINUX-0.a
\
               /opt/blacs-1.1/LINUX_MPI_64BIT/lib/blacsF77init_MPI-LINUX-0.a
\
               /opt/blacs-1.1/LINUX_MPI_64BIT/lib/blacs_MPI-LINUX-0.a"

for Trilinos' configure.
Unfortunately, Trilinos (9.0.3) seems to be smart enough to find duplicates
in
the list, and erases them. Usually desired, but not in this case!

Anyone with a similar experience, or even better a successful Scalapack
compile?

Cheers,
Nico



_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users


_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20090625/2f820935/attachment.html 


More information about the Trilinos-Users mailing list