[Trilinos-Users] [EXTERNAL] Instantiation failure of Zoltan2::AMDTraits order

Rajamanickam, Sivasankaran (-EXP) srajama at sandia.gov
Thu Apr 2 08:11:07 MDT 2015


Hi Ryuta,

  The AMD TPL traits is missing a specialization for long int. We need to convert this using Teuchos::as as AMD doesn't support it anyway. I will fix it early next week.


Thanks

Siva


________________________________
From: trilinos-users-bounces at software.sandia.gov <trilinos-users-bounces at software.sandia.gov> on behalf of Ryuta Suzuki <ryuuta at gmail.com>
Sent: Wednesday, April 1, 2015 6:33 PM
To: trilinos-users at software.sandia.gov
Subject: [EXTERNAL] [Trilinos-Users] Instantiation failure of Zoltan2::AMDTraits order

Hi,
It seems Zoltan2's AMD order algorithm cannot be instantiated when the typename of global and local ordinals are different. The error messages are in bold at the bottom of the compiler messages I pasted.

Ryuta

 58%] Building CXX object packages/ifpack2/src/CMakeFiles/ifpack2.dir/Ifpack2_AdditiveSchwarz.cpp.o
In file included from /home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_OrderingAlgorithms.hpp:53:0,
                 from /home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:54,
                 from /home/ryuta/devel/trilinos/src/trilinos/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:62,
                 from /home/ryuta/devel/trilinos/src/trilinos/packages/ifpack2/src/Ifpack2_AdditiveSchwarz.cpp:53:
/home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp: In member function ‘int Zoltan2::AlgAMD<Adapter>::order(const Teuchos::RCP<Zoltan2::OrderingSolution<typename Adapter::zgid_t, typename Adapter::lno_t> >&)’:
/home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp:129:40: warning: typedef ‘zgid_t’ locally defined but not used [-Wunused-local-typedefs]
       typedef typename Adapter::zgid_t zgid_t;
                                        ^
/home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp: In instantiation of ‘int Zoltan2::AlgAMD<Adapter>::order(const Teuchos::RCP<Zoltan2::OrderingSolution<typename Adapter::zgid_t, typename Adapter::lno_t> >&) [with Adapter = Zoltan2::MatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >; typename Adapter::lno_t = int; typename Adapter::zgid_t = long int]’:
/home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:233:11:   required from ‘void Zoltan2::OrderingProblem<Adapter>::solve(bool) [with Adapter = Zoltan2::XpetraRowMatrixAdapter<Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >]’
/home/ryuta/devel/trilinos/src/trilinos/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:1336:5:   required from ‘void Ifpack2::AdditiveSchwarz<MatrixType, LocalInverseType>::setup() [with MatrixType = Tpetra::RowMatrix<double, int, long int>; LocalInverseType = Ifpack2::Preconditioner<double, int, long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >]’
/home/ryuta/devel/trilinos/src/trilinos/packages/ifpack2/src/Ifpack2_AdditiveSchwarz.cpp:94:3:   required from here
/home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp:165:70: error: no matching function for call to ‘Zoltan2::AMDTraits<int>::order(const size_t&, const int*, const long int*, lno_t*&, double [5], double [20])’
                              edgeIds.getRawPtr(), perm, Control, Info);
                                                                      ^
/home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp:165:70: note: candidate is:
/home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp:77:9: note: int Zoltan2::AMDTraits<int>::order(int, const int*, const int*, int*, double*, double*)
     int order(int n, const int *Ap, const int *Ai, int *perm,
         ^
/home/ryuta/devel/trilinos/src/trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp:77:9: note:   no known conversion for argument 3 from ‘const long int*’ to ‘const int*’
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150402/0059be81/attachment.html>


More information about the Trilinos-Users mailing list