Commit 693c8ea8 authored by Li-Ta Lo's avatar Li-Ta Lo
Browse files

Update PointLocatorUniformGrid.h

See if the problem is the DeviceList.
parent d8ff2ba7
...@@ -165,10 +165,11 @@ public: ...@@ -165,10 +165,11 @@ public:
{ {
// TODO: call VirtualObjectHandle::PrepareForExecution() and return vtkm::exec::PointLocator // TODO: call VirtualObjectHandle::PrepareForExecution() and return vtkm::exec::PointLocator
// TODO: how to convert deviceId back to DeviceAdapter tag? // TODO: how to convert deviceId back to DeviceAdapter tag?
using DeviceList = vtkm::ListTagBase<vtkm::cont::DeviceAdapterTagCuda, //using DeviceList = vtkm::ListTagBase<vtkm::cont::DeviceAdapterTagCuda,
vtkm::cont::DeviceAdapterTagTBB, // vtkm::cont::DeviceAdapterTagTBB,
vtkm::cont::DeviceAdapterTagSerial>; // vtkm::cont::DeviceAdapterTagSerial>;
using DeviceList = VTKM_DEFAULT_DEVICE_ADAPTER_LIST_TAG;
//HandleType ExecHandle; // = new HandleType(locator, false); //HandleType ExecHandle; // = new HandleType(locator, false);
vtkm::cont::internal::FindDeviceAdapterTagAndCall( vtkm::cont::internal::FindDeviceAdapterTagAndCall(
deviceId, DeviceList(), PrepareForExecutionFunctor(), *this, ExecHandle); deviceId, DeviceList(), PrepareForExecutionFunctor(), *this, ExecHandle);
......
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