Commit d5dc414e authored by Robert Maynard's avatar Robert Maynard

StorageBasic allocation logic now reports number of elements

When looking at allocations it is useful to have memory size and
the number of elements so you can figure out what type/sizeof(type)
is being allocated
parent f3536e44
......@@ -225,8 +225,9 @@ void StorageBasicBase::AllocateValues(vtkm::Id numberOfValues, vtkm::UInt64 size
throw vtkm::cont::ErrorBadAllocation("Could not allocate basic control array.");
}
VTKM_LOG_F(vtkm::cont::LogLevel::MemCont,
"Allocated control array of %s.",
vtkm::cont::GetSizeString(allocsize).c_str());
"Allocated control array of %s. [element count %llu]",
vtkm::cont::GetSizeString(allocsize).c_str(),
numberOfValues);
}
else
{
......
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