Log the conversion of num components to offsets
This commit is contained in:
parent
420b9d3979
commit
bef55f8ee3
@ -459,6 +459,8 @@ VTKM_CONT void ConvertNumComponentsToOffsets(
|
||||
using namespace vtkm::cont;
|
||||
VTKM_IS_ARRAY_HANDLE(NumComponentsArrayType);
|
||||
|
||||
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
|
||||
|
||||
Algorithm::ScanExtended(device, make_ArrayHandleCast<vtkm::Id>(numComponentsArray), offsetsArray);
|
||||
|
||||
sourceArraySize = ArrayGetValue(offsetsArray.GetNumberOfValues() - 1, offsetsArray);
|
||||
@ -472,6 +474,8 @@ VTKM_CONT void ConvertNumComponentsToOffsets(
|
||||
{
|
||||
VTKM_IS_ARRAY_HANDLE(NumComponentsArrayType);
|
||||
|
||||
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
|
||||
|
||||
vtkm::cont::Algorithm::ScanExtended(
|
||||
device, vtkm::cont::make_ArrayHandleCast<vtkm::Id>(numComponentsArray), offsetsArray);
|
||||
}
|
||||
|
@ -81,6 +81,8 @@ template <typename S1, typename S2>
|
||||
void ConvertNumIndicesToOffsets(const vtkm::cont::ArrayHandle<vtkm::Id, S1>& numIndices,
|
||||
vtkm::cont::ArrayHandle<vtkm::Id, S2>& offsets)
|
||||
{
|
||||
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
|
||||
|
||||
vtkm::cont::Algorithm::ScanExtended(numIndices, offsets);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user