Skip to content
Snippets Groups Projects
Commit d76b0ba7 authored by Robert Maynard's avatar Robert Maynard Committed by T.J. Corona
Browse files

vtkmlibCellSetConverters compiles with cuda and gcc 4.8

(cherry picked from commit 3477e69c)
parent 8d95e9ef
Branches
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ struct ReorderHex : public vtkm::exec::FunctorBase
struct RunReorder
{
RunReorder(vtkm::cont::ArrayHandle<vtkm::Id>& handle)
: Handle{ handle }
: Handle(handle)
{
}
......@@ -135,9 +135,13 @@ struct BuildSingleTypeVoxelCellSetVisitor
vtkm::cont::ArrayCopy(
vtkm::cont::make_ArrayHandle(origData, numIds, vtkm::CopyFlag::Off), connHandle);
// reorder cells from voxel->hex:
// reorder cells from voxel->hex: which only can run on
// devices that have shared memory / vtable with the CPU
using SMPTypes = vtkm::List<vtkm::cont::DeviceAdapterTagTBB,
vtkm::cont::DeviceAdapterTagOpenMP, vtkm::cont::DeviceAdapterTagSerial>;
RunReorder reorder{ connHandle };
vtkm::cont::TryExecute(reorder);
vtkm::cont::TryExecute(reorder, SMPTypes{});
}
using CellSetType = vtkm::cont::CellSetSingleType<>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment