Commit 75bf9d36 authored by Robert Maynard's avatar Robert Maynard Committed by Kitware Robot

Merge topic 'testing_device_adapter_remove_array_manager_execution_usage'

065d1178 Testing Device Adapter now uses ArrayHandle for all device transfers
Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: Kenneth Moreland's avatarKenneth Moreland <>
Merge-request: !1651
parents a896f779 065d1178
......@@ -51,6 +51,19 @@ void ExecutionArrayInterfaceBasic<DeviceAdapterTagCuda>::Allocate(TypelessExecut
const std::size_t maxNumVals = (std::numeric_limits<std::size_t>::max() / sizeOfValue);
if (static_cast<std::size_t>(numberOfValues) > maxNumVals)
"Refusing to allocate CUDA memory; number of values (%llu) exceeds "
"std::size_t capacity.",
std::ostringstream err;
err << "Failed to allocate " << numberOfValues << " values on device: "
<< "Number of bytes is not representable by std::size_t.";
throw vtkm::cont::ErrorBadAllocation(err.str());
if (execArray.Array != nullptr)
const vtkm::UInt64 cap = static_cast<vtkm::UInt64>(static_cast<char*>(execArray.ArrayCapacity) -
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment