panzer on cuda 7.5.18
Created by: bathmatt
On shiller I cannot compile panzer with cuda, but can with my desktop. The major difference is cuda 8 vs 7.5.18.
@rppawlo @mhoemmen @crtrott do you have any ideas why these would be different? Are we using Kokkos::Compat::KokkosDeviceWrapperNode anymore?
There are two different errors
Which looks like panzer::TpetraNodeType != Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Cuda, Kokkos::Cuda::memory_space>>
[100%] Building CXX object packages/panzer/dof-mgr/src/CMakeFiles/panzer-dof-mgr.dir/Panzer_Filtered_UniqueGlobalIndexer.cpp.o
/home/mbetten/workspace/Trilinos/packages/teuchos/core/src/Teuchos_RCP.hpp(288): error: a value of type "const Tpetra::Map<int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Cuda, Kokkos::Cuda::memory_space>> *" cannot be used to initialize an entity of type "const Tpetra::Map<int, int, panzer::TpetraNodeType> *"
detected during:
instantiation of "Teuchos::RCP<T>::RCP(const Teuchos::RCP<T2> &) [with T=const Tpetra::Map<int, int, panzer::TpetraNodeType>, T2=const Tpetra::Map<int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Cuda, Kokkos::Cuda::memory_space>>]"
/home/mbetten/workspace/Trilinos/packages/panzer/dof-mgr/src/Panzer_Filtered_UniqueGlobalIndexer_impl.hpp(116): here
instantiation of "void panzer::Filtered_UniqueGlobalIndexer<LocalOrdinalT, GlobalOrdinalT>::getOwnedAndGhostedNotFilteredIndicator(std::vector<int, std::allocator<int>> &) const [with LocalOrdinalT=int, GlobalOrdinalT=int]"
/home/mbetten/workspace/Trilinos/packages/panzer/dof-mgr/src/Panzer_Filtered_UniqueGlobalIndexer.cpp(48): here
1 error detected in the compilation of "/tmp/tmpxft_0000854e_00000000-7_Panzer_Filtered_UniqueGlobalIndexer.cpp1.ii".
make[2]: *** [packages/panzer/dof-mgr/src/CMakeFiles/panzer-dof-mgr.dir/Panzer_Filtered_UniqueGlobalIndexer.cpp.o] Error 2
The second error looks like view incompatibility, It could be the same thing.
[100%] Building CXX object packages/panzer/dof-mgr/src/CMakeFiles/panzer-dof-mgr.dir/Panzer_DOFManager.cpp.o
/home/mbetten/workspace/Trilinos/packages/teuchos/core/src/Teuchos_RCP.hpp(288): error: a value of type "const Tpetra::Map<int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Cuda, Kokkos::Cuda::memory_space>> *" cannot be used to initialize an entity of type "const Tpetra::Map<int, int, panzer::TpetraNodeType> *"
detected during:
instantiation of "Teuchos::RCP<T>::RCP(const Teuchos::RCP<T2> &) [with T=const Tpetra::Map<int, int, panzer::TpetraNodeType>, T2=const Tpetra::Map<int, int, Kokkos::Compat::KokkosDeviceWrapperNode<Kokkos::Cuda, Kokkos::Cuda::memory_space>>]"
/home/mbetten/workspace/Trilinos/packages/panzer/dof-mgr/src/Panzer_DOFManager_impl.hpp(1164): here
instantiation of "Teuchos::RCP<const Tpetra::Map<LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType>> panzer::DOFManager<LocalOrdinalT, GlobalOrdinalT>::buildOverlapMapFromElements(const panzer::DOFManager<LocalOrdinalT, GlobalOrdinalT>::ElementBlockAccess &) const [with LocalOrdinalT=int, GlobalOrdinalT=int]"
/home/mbetten/workspace/Trilinos/packages/panzer/dof-mgr/src/Panzer_DOFManager_impl.hpp(396): here
/home/mbetten/workspace/Trilinos/packages/kokkos/core/src/Kokkos_View.hpp(1221): error: static assertion failed with "Incompatible View copy construction"
detected during:
instantiation of "Kokkos::View<DataType, Properties...>::View(const Kokkos::View<RT, RP...> &) [with DataType=int **, Properties=<Kokkos::LayoutLeft, Kokkos::Cuda::execution_space, void>, RT=int **, RP=<Kokkos::LayoutLeft, PHX::Device>]"
/home/mbetten/workspace/Trilinos/packages/panzer/dof-mgr/src/Panzer_DOFManager_impl.hpp(662): here
instantiation of "std::pair<Teuchos::RCP<Tpetra::MultiVector<GlobalOrdinalT, LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType, false>>, Teuchos::RCP<Tpetra::MultiVector<GlobalOrdinalT, LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType, false>>> panzer::DOFManager<LocalOrdinalT, GlobalOrdinalT>::buildGlobalUnknowns_GUN(const Tpetra::MultiVector<GlobalOrdinalT, LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType, false> &, Tpetra::MultiVector<GlobalOrdinalT, LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType, false> &) const [with LocalOrdinalT=int, GlobalOrdinalT=int]"
/home/mbetten/workspace/Trilinos/packages/panzer/dof-mgr/src/Panzer_DOFManager_impl.hpp(377): here
/home/mbetten/workspace/Trilinos/packages/kokkos/core/src/impl/Kokkos_ViewMapping.hpp(2884): error: static assertion failed with "View assignment must have compatible spaces"
detected during:
instantiation of "void Kokkos::Experimental::Impl::ViewMapping<DstTraits, SrcTraits, std::enable_if<<expression>, void>::type>::assign(Kokkos::Experimental::Impl::ViewMapping<DstTraits, SrcTraits, std::enable_if<<expression>, void>::type>::DstType &, const Kokkos::Experimental::Impl::ViewMapping<DstTraits, SrcTraits, std::enable_if<<expression>, void>::type>::SrcType &, const Kokkos::Experimental::Impl::ViewMapping<DstTraits, SrcTraits, std::enable_if<<expression>, void>::type>::TrackType &) [with DstTraits=Kokkos::ViewTraits<int **, Kokkos::LayoutLeft, Kokkos::Cuda::execution_space, void>, SrcTraits=Kokkos::ViewTraits<int **, Kokkos::LayoutLeft, PHX::Device>]"
/home/mbetten/workspace/Trilinos/packages/kokkos/core/src/Kokkos_View.hpp(1222): here
instantiation of "Kokkos::View<DataType, Properties...>::View(const Kokkos::View<RT, RP...> &) [with DataType=int **, Properties=<Kokkos::LayoutLeft, Kokkos::Cuda::execution_space, void>, RT=int **, RP=<Kokkos::LayoutLeft, PHX::Device>]"
/home/mbetten/workspace/Trilinos/packages/panzer/dof-mgr/src/Panzer_DOFManager_impl.hpp(662): here
instantiation of "std::pair<Teuchos::RCP<Tpetra::MultiVector<GlobalOrdinalT, LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType, false>>, Teuchos::RCP<Tpetra::MultiVector<GlobalOrdinalT, LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType, false>>> panzer::DOFManager<LocalOrdinalT, GlobalOrdinalT>::buildGlobalUnknowns_GUN(const Tpetra::MultiVector<GlobalOrdinalT, LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType, false> &, Tpetra::MultiVector<GlobalOrdinalT, LocalOrdinalT, GlobalOrdinalT, panzer::TpetraNodeType, false> &) const [with LocalOrdinalT=int, GlobalOrdinalT=int]"
/home/mbetten/workspace/Trilinos/packages/panzer/dof-mgr/src/Panzer_DOFManager_impl.hpp(377): here