Kokkos::deep_copy error with CudaUVM and Kokkos::Serial spaces #1652
Labels
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
Milestone
Based on issue trilinos/Trilinos#2827, created an isolated reproducer where
deep_copy
of a View from Serial space to CudaUVMSpace caused errors of the typeCUDA Exception: Device Illegal Address
@crtrott and @dsunder helped debug the issue - in
deep_copy
the views are passed toview_copy
with memory space info stripped away, leading to theDstExecCanAccessSrc/SrcExecCanAccessDst
conditional checks to error.Fix:
Replacing
view_copy(Impl::view_copy(typename dst_type::uniform_runtime_nomemspace_type(dst), typename src_type::uniform_runtime_const_nomemspace_type(src));
withview_copy(dst,src);
fixed the issue in the reproducer.Working on a unit test to ensure other potential cases are caught, will then issue hotfix to Trilinos.
The text was updated successfully, but these errors were encountered: