Tpetra: Map<>::getLocalElement cannot be called in a host-side parallel region #13445
Labels
client: Sierra
All issues that primarily impacts SNL Sierra codes
pkg: Tpetra
type: bug
The primary issue is a bug in Trilinos code or tests
Bug Report
@trilinos/tpetra
@japlews
@vbrunini
Tpetra::Map<>::getLocalElement
(which according to the doxygen should be thread safe) may callTpetra::Map<>::lazyPushToHost
.Tpetra::Map<>::lazyPushToHost
performs several operations (Kokkos::deep_copy
,Kokkos::fence
) that are "illegal" from within a parallel region.With the recent Kokkos 4.4 promotion, this may now cause host-side parallel regions to hang.
See:
Trilinos/packages/tpetra/core/src/Tpetra_Map_decl.hpp
Line 631 in b895aa6
and
Trilinos/packages/tpetra/core/src/Tpetra_Map_def.hpp
Line 1251 in b895aa6
Steps to Reproduce
Call
Tpetra::Map<>::lazyPushToHost
from within a host-sideKokkos::parallel_for
.The text was updated successfully, but these errors were encountered: