Merge branch 'master' of gitlab.kitware.com:m-kim/vtk-m into advdatamodel

This commit is contained in:
Mark Kim 2019-06-25 10:36:47 -04:00
commit 699b57191f
2 changed files with 21 additions and 0 deletions

@ -0,0 +1,5 @@
# LodePNG added as a thirdparty
The lodepng library was brought is an thirdparty library.
This has allowed the VTK-m rendering library to have a robust
png decode functionality.

@ -987,6 +987,11 @@ public:
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
const vtkm::Id inSize = input.GetNumberOfValues();
if (inSize <= 0)
{
output.Shrink(inSize);
return;
}
CopyPortal(input.PrepareForInput(DeviceAdapterTagCuda()),
output.PrepareForOutput(inSize, DeviceAdapterTagCuda()));
}
@ -999,6 +1004,12 @@ public:
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
vtkm::Id size = stencil.GetNumberOfValues();
if (size <= 0)
{
output.Shrink(size);
return;
}
vtkm::Id newSize = CopyIfPortal(input.PrepareForInput(DeviceAdapterTagCuda()),
stencil.PrepareForInput(DeviceAdapterTagCuda()),
output.PrepareForOutput(size, DeviceAdapterTagCuda()),
@ -1015,6 +1026,11 @@ public:
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
vtkm::Id size = stencil.GetNumberOfValues();
if (size <= 0)
{
output.Shrink(size);
return;
}
vtkm::Id newSize = CopyIfPortal(input.PrepareForInput(DeviceAdapterTagCuda()),
stencil.PrepareForInput(DeviceAdapterTagCuda()),
output.PrepareForOutput(size, DeviceAdapterTagCuda()),