[petsc-users] Using STRUMPACK within PETSc

Niels Aage naage at mek.dtu.dk
Mon Nov 16 09:26:42 CST 2015


Hi all,

First of all, I hope this is the right place to pose the following question. We're trying to create a shell preconditioner based on low rank properties of a linear system. For this to be efficient it requires a fast (mpi-parallelized) method for compressing (low rank) dense matrices. A tool that offers just this is STRUMPACK (http://portal.nersc.gov/project/sparse/strumpack/).

So we simply need to link our petsc program to strumpack, but we have a hard time performing the linking. We have cooked our code down to a very simple test problem (see the attached code) that tries to invoke a single method from strumpack. This results in an "undefined reference to SDP_C_double_init(....)" even though the method clearly is in the object file "StrumpackDensePackage_C.o".

Note that my PETSc (3.6.2) is build with scalapack support which is needed by strumpack - and that I have used the PETSc libs to build and link the strumpack test example "STRUMPACK-Dense-1.1.1/examples/c_example.c". And that this works just fine:-)

We hope you have suggestions on how we can proceed - and let me know if any additional information is needed.

Thanks,
Niels Aage

Associate Professor, Ph.D.
Department of Mechanical Engineering,
Section for Solid Mechanics
Centre for Acoustic-Mechanical Micro Systems
Technical University of Denmark, Building 404, DK-2800 Lyngby, Denmark

Phone: (+45) 4525 4253, Fax: (+45) 4593 1475,
E-mail: naage at mek.dtu.dk, Office: b404-122
Group homepage: www.topopt.dtu.dk<http://www.topopt.dtu.dk>
Centre homepage: www.camm.elektro.dtu.dk<http://www.camm.elektro.dtu.dk/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151116/51355aa1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: code.zip
Type: application/zip
Size: 681109 bytes
Desc: code.zip
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20151116/51355aa1/attachment-0001.zip>


More information about the petsc-users mailing list