Update vtkm/interop to use non-deprecated make_ArrayHandle API

This commit is contained in:
Robert Maynard 2020-08-03 12:15:16 -04:00
parent b7a9eb0c73
commit 47843ea2e3
2 changed files with 2 additions and 2 deletions

@ -182,7 +182,7 @@ public:
this->Resource->Map();
ValueType* beginPointer = this->Resource->GetMappedPoiner<ValueType>(size);
auto deviceMemory = vtkm::cont::make_ArrayHandle(beginPointer, size);
auto deviceMemory = vtkm::cont::make_ArrayHandle(beginPointer, size, vtkm::CopyFlag::Off);
//Do a device to device memory copy
vtkm::cont::DeviceAdapterAlgorithm<DeviceAdapterTag>::Copy(handle, deviceMemory);

@ -66,7 +66,7 @@ public:
T* storage = reinterpret_cast<T*>(this->TempStorage.get());
//construct a handle that is a view onto the memory
return vtkm::cont::make_ArrayHandle(storage, size);
return vtkm::cont::make_ArrayHandle(storage, size, vtkm::CopyFlag::Off);
}
template <typename T>