Skip to content
Snippets Groups Projects
Commit c6968818 authored by stamoor's avatar stamoor
Browse files

Enabling new kokkos view

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14934 f3b2605a-c512-4ea7-a41b-209d697bcdaa
parent 955c8d92
No related branches found
No related tags found
No related merge requests found
...@@ -745,8 +745,8 @@ template<class ViewType> ...@@ -745,8 +745,8 @@ template<class ViewType>
void memset_kokkos (ViewType &view) { void memset_kokkos (ViewType &view) {
static MemsetZeroFunctor<typename ViewType::execution_space> f; static MemsetZeroFunctor<typename ViewType::execution_space> f;
f.ptr = view.ptr_on_device(); f.ptr = view.ptr_on_device();
#ifdef KOKKOS_USING_EXPERIMENTAL_VIEW #ifndef KOKKOS_USING_DEPRECATED_VIEW
Kokkos::parallel_for(view.memory_span()/4, f); Kokkos::parallel_for(view.span()*sizeof(typename ViewType::value_type)/4, f);
#else #else
Kokkos::parallel_for(view.capacity()*sizeof(typename ViewType::value_type)/4, f); Kokkos::parallel_for(view.capacity()*sizeof(typename ViewType::value_type)/4, f);
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment