Skip to content

Commit

Permalink
Kokkos: Fix issue in resize
Browse files Browse the repository at this point in the history
The resize function was using the Device template parameter of the view
for a fence. This doesn't work if the third parameter is not a device/execution space.

Now its using the internal typedef of the view.
  • Loading branch information
crtrott authored and hcedwar committed Nov 12, 2015
1 parent f0fc9c5 commit 28683f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/Kokkos_View.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1854,7 +1854,7 @@ void resize( View<T,L,D,M,S> & v ,

Impl::ViewRemap< view_type , view_type >( v_resized , v );

D::fence();
view_type::execution_space::fence();

v = v_resized ;
}
Expand Down

0 comments on commit 28683f7

Please sign in to comment.