[Trilinos-Users] blacs (scalapack) linking issue

Nico Schlömer nico.schloemer at ua.ac.be
Thu Jun 25 13:47:10 MDT 2009


Hey,

solution #3:
Rename the BLACS libs to lib*, and call 

        /opt/blacs-1.1/LINUX_MPI_64BIT/lib/libblacs_MPI-LINUX-0.a \
        /opt/blacs-1.1/LINUX_MPI_64BIT/lib/libblacsF77init_MPI-LINUX-0.a \
        -lblacs_MPI-LINUX-0

-- Trilinos does't notice the first and the last are really the same.

Gosh, this is all somewhat ugly, but I guess the rotten core it BLACS's 
requiring this double linking.

Cheers!
Nico


On Thursday 25 June 2009 17:07:57 Phipps, Eric T wrote:
> 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





More information about the Trilinos-Users mailing list