55  typedef typename DeviceType::execution_space execution_space;
 
   56  typedef Kokkos::DualView<ValueType*, DeviceType> dual_view_type;
 
   57  typedef Kokkos::pair<size_t, size_t> range_type;
 
   63  const size_t curSize = 
static_cast<size_t>(
dv.extent(0));
 
   68      execution_space().fence();  
 
   70    dv = dual_view_type();  
 
   77        execution_space().fence();  
 
   90        execution_space().fence();  
 
   92      dv = dual_view_type();  
 
   97      auto d_view = Kokkos::subview(
dv.view_device(), range_type(0, 
newSize));
 
 
bool reallocDualViewIfNeeded(Kokkos::DualView< ValueType *, DeviceType > &dv, const size_t newSize, const char newLabel[], const size_t tooBigFactor=2, const bool needFenceBeforeRealloc=true)
Reallocate the DualView in/out argument, if needed.