Commit aa92c84a authored by Robert Maynard's avatar Robert Maynard

VTK-m Accelerator supports the OpenMP backend

parent b58a17f0
......@@ -193,5 +193,17 @@ template VTKACCELERATORSVTKM_EXPORT
vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const;
#endif
#ifdef VTKM_ENABLE_OPENMP
template VTKACCELERATORSVTKM_EXPORT
vtkm::exec::ConnectivityVTKAOS<vtkm::cont::DeviceAdapterTagOpenMP>
vtkmCellSetExplicitAOS::PrepareForInput(vtkm::cont::DeviceAdapterTagOpenMP,
vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell) const;
template VTKACCELERATORSVTKM_EXPORT
vtkm::exec::ReverseConnectivityVTK<vtkm::cont::DeviceAdapterTagOpenMP>
vtkmCellSetExplicitAOS::PrepareForInput(vtkm::cont::DeviceAdapterTagOpenMP,
vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const;
#endif
}
}
......@@ -225,6 +225,18 @@ extern template VTKACCELERATORSVTKM_TEMPLATE_EXPORT
vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const;
#endif
#ifdef VTKM_ENABLE_OPENMP
extern template VTKACCELERATORSVTKM_TEMPLATE_EXPORT
vtkm::exec::ConnectivityVTKAOS<vtkm::cont::DeviceAdapterTagOpenMP>
vtkmCellSetExplicitAOS::PrepareForInput(vtkm::cont::DeviceAdapterTagOpenMP,
vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell) const;
extern template VTKACCELERATORSVTKM_TEMPLATE_EXPORT
vtkm::exec::ReverseConnectivityVTK<vtkm::cont::DeviceAdapterTagOpenMP>
vtkmCellSetExplicitAOS::PrepareForInput(vtkm::cont::DeviceAdapterTagOpenMP,
vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const;
#endif
#if defined(VTKM_ENABLE_CUDA) && defined(VTKM_CUDA)
extern template VTKACCELERATORSVTKM_TEMPLATE_EXPORT
vtkm::exec::ConnectivityVTKAOS<vtkm::cont::DeviceAdapterTagCuda>
......
......@@ -202,5 +202,17 @@ template VTKACCELERATORSVTKM_EXPORT
vtkmCellSetSingleType::PrepareForInput(vtkm::cont::DeviceAdapterTagTBB,
vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const;
#endif
#ifdef VTKM_ENABLE_OPENMP
template VTKACCELERATORSVTKM_EXPORT
vtkm::exec::ConnectivityVTKSingleType<vtkm::cont::DeviceAdapterTagOpenMP>
vtkmCellSetSingleType::PrepareForInput(vtkm::cont::DeviceAdapterTagOpenMP,
vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell) const;
template VTKACCELERATORSVTKM_EXPORT
vtkm::exec::ReverseConnectivityVTK<vtkm::cont::DeviceAdapterTagOpenMP>
vtkmCellSetSingleType::PrepareForInput(vtkm::cont::DeviceAdapterTagOpenMP,
vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const;
#endif
}
}
......@@ -226,6 +226,18 @@ extern template VTKACCELERATORSVTKM_TEMPLATE_EXPORT
vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const;
#endif
#ifdef VTKM_ENABLE_OPENMP
extern template VTKACCELERATORSVTKM_TEMPLATE_EXPORT
vtkm::exec::ConnectivityVTKSingleType<vtkm::cont::DeviceAdapterTagOpenMP>
vtkmCellSetSingleType::PrepareForInput(vtkm::cont::DeviceAdapterTagOpenMP,
vtkm::TopologyElementTagPoint, vtkm::TopologyElementTagCell) const;
extern template VTKACCELERATORSVTKM_TEMPLATE_EXPORT
vtkm::exec::ReverseConnectivityVTK<vtkm::cont::DeviceAdapterTagTBB>
vtkmCellSetSingleType::PrepareForInput(vtkm::cont::DeviceAdapterTagTBB,
vtkm::TopologyElementTagCell, vtkm::TopologyElementTagPoint) const;
#endif
#if defined(VTKM_ENABLE_CUDA) && defined(VTKM_CUDA)
extern template VTKACCELERATORSVTKM_TEMPLATE_EXPORT
vtkm::exec::ConnectivityVTKSingleType<vtkm::cont::DeviceAdapterTagCuda>
......
......@@ -165,5 +165,11 @@ template class ConnectivityVTKSingleType<vtkm::cont::DeviceAdapterTagTBB>;
template class ReverseConnectivityVTK<vtkm::cont::DeviceAdapterTagTBB>;
#endif
#ifdef VTKM_ENABLE_OPENMP
template class ConnectivityVTKAOS<vtkm::cont::DeviceAdapterTagOpenMP>;
template class ConnectivityVTKSingleType<vtkm::cont::DeviceAdapterTagOpenMP>;
template class ReverseConnectivityVTK<vtkm::cont::DeviceAdapterTagOpenMP>;
#endif
}
}
......@@ -31,6 +31,7 @@
#include <vtkm/cont/serial/DeviceAdapterSerial.h>
#include <vtkm/cont/cuda/DeviceAdapterCuda.h>
#include <vtkm/cont/openmp/DeviceAdapterOpenMP.h>
#include <vtkm/cont/tbb/DeviceAdapterTBB.h>
namespace vtkm {
......@@ -199,6 +200,12 @@ extern template class VTKACCELERATORSVTKM_TEMPLATE_EXPORT ConnectivityVTKSingleT
extern template class VTKACCELERATORSVTKM_TEMPLATE_EXPORT ReverseConnectivityVTK<vtkm::cont::DeviceAdapterTagTBB>;
#endif
#ifdef VTKM_ENABLE_OPENMP
extern template class VTKACCELERATORSVTKM_TEMPLATE_EXPORT ConnectivityVTKAOS<vtkm::cont::DeviceAdapterTagOpenMP>;
extern template class VTKACCELERATORSVTKM_TEMPLATE_EXPORT ConnectivityVTKSingleType<vtkm::cont::DeviceAdapterTagOpenMP>;
extern template class VTKACCELERATORSVTKM_TEMPLATE_EXPORT ReverseConnectivityVTK<vtkm::cont::DeviceAdapterTagOpenMP>;
#endif
//only when cuda is enabled, and the compiler is cuda
#if defined(VTKM_ENABLE_CUDA) && defined(VTKM_CUDA)
extern template class VTKACCELERATORSVTKM_TEMPLATE_EXPORT ConnectivityVTKAOS<vtkm::cont::DeviceAdapterTagCuda>;
......
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