Build failure with Ifpack2, Zoltan2, and AMD TPL
Created by: bavier
At commit 17ccfa78, I configure Trilinos with simply:
cmake \
-DTPL_ENABLE_AMD:BOOL=YES \
-DBUILD_SHARED_LIBS:BOOL=YES \
-DTrilinos_ENABLE_Zoltan2:BOOL=YES \
-DTrilinos_ENABLE_Ifpack2:BOOL=YES \
..
During build, I get the following error:
In file included from /ptmp/Trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_OrderingAlgorithms.hpp:53:0,
from /ptmp/Trilinos/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:54,
from /ptmp/Trilinos/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:68,
from /ptmp/Trilinos/build/build-zoltan2-amd/packages/ifpack2/src/Ifpack2_AdditiveSchwarz.hpp:2,
from /ptmp/Trilinos/packages/ifpack2/src/Ifpack2_Details_Factory_def.hpp:47,
from /ptmp/Trilinos/build/build-zoltan2-amd/packages/ifpack2/src/Ifpack2_Details_Factory.hpp:2,
from /ptmp/Trilinos/packages/ifpack2/src/Ifpack2_Factory_decl.hpp:48,
from /ptmp/Trilinos/build/build-zoltan2-amd/packages/ifpack2/src/Ifpack2_Factory.hpp:1,
from /ptmp/Trilinos/packages/ifpack2/src/Ifpack2_Details_LinearSolverFactory_def.hpp:54,
from /ptmp/Trilinos/build/build-zoltan2-amd/packages/ifpack2/src/Ifpack2_Details_LinearSolverFactory.hpp:2,
from /ptmp/Trilinos/packages/ifpack2/src/Ifpack2_Details_registerLinearSolverFactory.cpp:45:
/ptmp/Trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp: In instantiation of 'int Zoltan2::AlgAMD<Adapter>::order(const Teuchos::RCP<Zoltan2::OrderingSolution<typename Adapter::lno_t, typename Adapter::gno_t> >&) [with Adapter = Zoltan2::MatrixAdapter<Xpetra::RowMatrix<double, int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >; typename Adapter::gno_t = long long int; typename Adapter::lno_t = int]':
/ptmp/Trilinos/packages/zoltan2/src/problems/Zoltan2_OrderingProblem.hpp:229:11: required from 'void Zoltan2::OrderingProblem<Adapter>::solve(bool) [with Adapter = Zoltan2::XpetraRowMatrixAdapter<Xpetra::RowMatrix<double, int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >, Xpetra::RowMatrix<double, int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> > >]'
/ptmp/Trilinos/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:1517:5: required from 'void Ifpack2::AdditiveSchwarz<MatrixType, LocalInverseType>::setup() [with MatrixType = Tpetra::RowMatrix<double, int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >; LocalInverseType = Ifpack2::Preconditioner<double, int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >]'
/ptmp/Trilinos/packages/ifpack2/src/Ifpack2_AdditiveSchwarz_def.hpp:1134:11: required from 'void Ifpack2::AdditiveSchwarz<MatrixType, LocalInverseType>::initialize() [with MatrixType = Tpetra::RowMatrix<double, int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >; LocalInverseType = Ifpack2::Preconditioner<double, int, long long int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Serial> >]'
/ptmp/Trilinos/packages/ifpack2/src/Ifpack2_Details_registerLinearSolverFactory.cpp:76:1: required from here
/ptmp/Trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp:154:70: error: no matching function for call to 'Zoltan2::AMDTraits<int>::order(const size_t&, const int*, const long long int*, lno_t*&, double [5], double [20])'
edgeIds.getRawPtr(), perm, Control, Info);
^
/ptmp/Trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp:77:9: note: candidate: 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,
^
/ptmp/Trilinos/packages/zoltan2/src/algorithms/order/Zoltan2_AlgAMD.hpp:77:9: note: no known conversion for argument 3 from 'const long long int*' to 'const int*'
packages/ifpack2/src/CMakeFiles/ifpack2.dir/build.make:62: recipe for target 'packages/ifpack2/src/CMakeFiles/ifpack2.dir/Ifpack2_Details_registerLinearSolverFactory.cpp.o' failed
make[2]: *** [packages/ifpack2/src/CMakeFiles/ifpack2.dir/Ifpack2_Details_registerLinearSolverFactory.cpp.o] Error 1
CMakeFiles/Makefile2:6589: recipe for target 'packages/ifpack2/src/CMakeFiles/ifpack2.dir/all' failed
make[1]: *** [packages/ifpack2/src/CMakeFiles/ifpack2.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2