mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Stop GetStorage copy.
This commit is contained in:
parent
fdfd62d43a
commit
af7a4a7805
@ -268,7 +268,7 @@ ArrayHandle<T, StorageTagBasic>::PrepareForInput(DeviceAdapterTag device) const
|
||||
|
||||
this->PrepareForDevice(device);
|
||||
const vtkm::UInt64 numBytes = static_cast<vtkm::UInt64>(sizeof(ValueType)) *
|
||||
static_cast<vtkm::UInt64>(this->GetStorage().GetNumberOfValues());
|
||||
static_cast<vtkm::UInt64>(this->GetNumberOfValues());
|
||||
|
||||
|
||||
if (!this->Internals->ExecutionArrayValid)
|
||||
@ -348,7 +348,7 @@ ArrayHandle<T, StorageTagBasic>::PrepareForInPlace(DeviceAdapterTag device)
|
||||
this->PrepareForDevice(device);
|
||||
|
||||
const vtkm::UInt64 numBytes = static_cast<vtkm::UInt64>(sizeof(ValueType)) *
|
||||
static_cast<vtkm::UInt64>(this->GetStorage().GetNumberOfValues());
|
||||
static_cast<vtkm::UInt64>(this->GetNumberOfValues());
|
||||
|
||||
if (!this->Internals->ExecutionArrayValid)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user