-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
ndellingwood
added
the
Bug
Broken / incorrect code; it could be Kokkos' responsibility, or others’ (e.g., Trilinos)
label
May 31, 2018
ndellingwood
added a commit
that referenced
this issue
Jun 1, 2018
Addresses issue #1652 and partially trilinos/Trilinos#2827 Changes to be committed: modified: CMakeLists.txt modified: Makefile new file: TestViewCopy.hpp new file: cuda/TestCudaHostPinned_ViewCopy.cpp new file: cuda/TestCudaUVM_ViewCopy.cpp new file: rocm/TestROCmHostPinned_ViewCopy.cpp
I believe this is fixed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: