[Trilinos-Users] Cannot get my own project to compile against Belos

Bradley, Andrew Michael ambradl at sandia.gov
Sun Mar 8 23:02:19 MDT 2015


Whoops. I helped Joe over the weekend offlist. I forgot to tell the list the issue was resolved. Sorry about that.

________________________________________
From: trilinos-users-bounces at software.sandia.gov <trilinos-users-bounces at software.sandia.gov> on behalf of Hoemmen, Mark <mhoemme at sandia.gov>
Sent: Sunday, March 8, 2015 11:00 PM
To: trilinos-users at software.sandia.gov
Subject: Re: [Trilinos-Users] Cannot get my own project to compile against      Belos

Hi Joe,

My guess is that your code needs to include BelosTpetraAdapter.hpp.  That
will tell Belos how to use Tpetra objects.  Belos doesn't know how to use
Tpetra (or Epetra, or Thyra) objects until you include the corresponding
header file.  If you already include this and it doesn't work, could you
share with us how you are building Trilinos (your "do-configure" script
that sets CMake options)?

mfh

Would you mind sharing with us how you built Trilinos?  My guess is that
On 3/7/15, 12:00 PM, "trilinos-users-request at software.sandia.gov"
<trilinos-users-request at software.sandia.gov> wrote:
>   1. Cannot get my own project to compile against Belos
>      (Rutherford, Joseph M)
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sat, 7 Mar 2015 01:04:19 +0000
>From: "Rutherford, Joseph M" <jmruther at illinois.edu>
>To: "trilinos-users at software.sandia.gov"
>       <trilinos-users at software.sandia.gov>
>Subject: [Trilinos-Users] Cannot get my own project to compile against
>       Belos
>Message-ID:
>       <2AAF6A497F1BC544BD9F414FF6D855BF223353A4 at CHIMBX6.ad.uillinois.edu>
>Content-Type: text/plain; charset="Windows-1252"
>
>Trilinos-Users:
>
>I am attempting to build a simple linear solver using Belos to provide
>iterative solving mechanisms.  However, when I compile it is not seeing
>proper specializations for my types. I am able to compile and run Belos
>examples in the source distribution, so I'm reasonably confident that my
>Trilinos 11.14 install is working (I have the same problem with 11.12).
>
>The output I get from GCC is below.  I would be grateful for any
>suggestions.
>
>Sincerely yours,
>
>Joe Rutherford
>
>
>
><compiler_message>
>In file included from
>/home/jmruther/trilinos/lib/cmake/Trilinos/../../../include/BelosLinearPro
>blem.hpp:50:0,
>                 from
>/home/jmruther/solver/src/./sparse_iterative_solver.hpp:2,
>                 from /home/jmruther/solver/src/main.cpp:10:
>/home/jmruther/trilinos/lib/cmake/Trilinos/../../../include/BelosOperatorT
>raits.hpp: In instantiation of ?static void
>Belos::UndefinedOperatorTraits<ScalarType, MV, OP>::notDefined() [with
>ScalarType = std::complex<float>; MV =
>Tpetra::MultiVector<std::complex<float>, int, int,
>Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>; OP =
>Tpetra::CrsMatrix<std::complex<float>, int, int,
>Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>]?:
>/home/jmruther/trilinos/lib/cmake/Trilinos/../../../include/BelosOperatorT
>raits.hpp:130:63:   required from ?static void
>Belos::OperatorTraits<ScalarType, MV, OP>::Apply(const OP&, const MV&,
>MV&, Belos::ETrans) [with ScalarType = std::complex<float>; MV =
>Tpetra::MultiVector<std::complex<float>, int, int,
>Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>; OP =
>Tpetra::CrsMatrix<std::complex<float>, int, int,
>Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>]?
>/home/jmruther/trilinos/lib/cmake/Trilinos/../../../include/BelosMatOrthoM
>anager.hpp:124:31:   required from ?void
>Belos::MatOrthoManager<ScalarType, MV, OP>::innerProd(const MV&, const
>MV&, Teuchos::SerialDenseMatrix<int, ScalarType>&) const [with ScalarType
>= std::complex<float>; MV = Tpetra::MultiVector<std::complex<float>, int,
>int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>; OP
>= Tpetra::CrsMatrix<std::complex<float>, int, int,
>Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>]?
>/home/jmruther/solver/src/main.cpp:107:1:   required from here
>/home/jmruther/trilinos/lib/cmake/Trilinos/../../../include/BelosOperatorT
>raits.hpp:70:49: error: ?this_type_is_missing_a_specialization? is not a
>member of ?Tpetra::CrsMatrix<std::complex<float>, int, int,
>Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial>, false>?
>       OP::this_type_is_missing_a_specialization();
>                                                 ^
>make[2]: *** [src/CMakeFiles/solver.exe.dir/main.cpp.o] Error 1
>make[1]: *** [src/CMakeFiles/solver.exe.dir/all] Error 2
>make: *** [all] Error 2
>jmruther at heaviside:build$
></compiler_message>
>
>------------------------------
>
>_______________________________________________
>Trilinos-Users mailing list
>Trilinos-Users at software.sandia.gov
>https://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
>End of Trilinos-Users Digest, Vol 115, Issue 5
>**********************************************

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


More information about the Trilinos-Users mailing list