More than one instance of _axpy

21 views
Skip to first unread message

Victor Eijkhout

unread,
Jan 20, 2021, 8:07:33 PM1/20/21
to deal.II User Group
```
[ 43%] Building CXX object CMakeFiles/aspect.dir/source/particle/interpolator/bilinear_least_squares.cc.o
In file included from /opt/apps/intel18/cray_mpich_7_7/dealii/9.2.0/include/deal.II/lac/full_matrix.templates.h(33),
                 from /work/00434/eijkhout/lonestar/aspect/aspect-2.2.0/source/particle/interpolator/bilinear_least_squares.cc(27):
/opt/apps/intel18/cray_mpich_7_7/dealii/9.2.0/include/deal.II/lac/lapack_templates.h(31): error: more than one instance of overloaded function "saxpy_" has "C" linkage
    saxpy_(const dealii::types::blas_int *n,
    ^

In file included from /opt/apps/intel18/cray_mpich_7_7/dealii/9.2.0/include/deal.II/lac/full_matrix.templates.h(33),
                 from /work/00434/eijkhout/lonestar/aspect/aspect-2.2.0/source/particle/interpolator/bilinear_least_squares.cc(27):
/opt/apps/intel18/cray_mpich_7_7/dealii/9.2.0/include/deal.II/lac/lapack_templates.h(39): error: more than one instance of overloaded function "daxpy_" has "C" linkage
    daxpy_(const dealii::types::blas_int *n,
    ^
```

I get this when installing Aspect on our Cray. On the Dell/intel cluster it works fine.

And as hard as I look at that file, I can not see how it sees more than one instance of those functions.

Wells, David

unread,
Jan 20, 2021, 8:32:45 PM1/20/21
to dea...@googlegroups.com
Hi Victor,

I don't know exactly what is causing this but I would bet that it's related to the fix we applied in


namely, some other package (I'm working from memory here, but I think it's Trilinos) defines its own LAPACK wrappers in a slightly different way (they put const in different places or something like that).

I don't use ASPECT but I suspect commenting out the inclusion of full_matrix.templates.h might resolve the issue. Someone who uses ASPECT should take a look.

Best,
David Wells

From: dea...@googlegroups.com <dea...@googlegroups.com> on behalf of Victor Eijkhout <eijk...@tacc.utexas.edu>
Sent: Wednesday, January 20, 2021 8:07 PM
To: deal.II User Group <dea...@googlegroups.com>
Subject: [deal.II] More than one instance of _axpy
 
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/101a662d-44d9-404f-9ccd-b6d3ddf9ea61n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages