VTK-m  2.2
DeviceAdapterMemoryManagerShared.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 #ifndef vtk_m_cont_internal_DeviceAdapterMemoryManagerShared_h
11 #define vtk_m_cont_internal_DeviceAdapterMemoryManagerShared_h
12 
14 
15 namespace vtkm
16 {
17 namespace cont
18 {
19 namespace internal
20 {
21 
28 class VTKM_CONT_EXPORT DeviceAdapterMemoryManagerShared : public DeviceAdapterMemoryManagerBase
29 {
30 public:
31  VTKM_CONT BufferInfo Allocate(vtkm::BufferSizeType size) const override;
32 
33  VTKM_CONT vtkm::cont::internal::BufferInfo CopyHostToDevice(
34  const vtkm::cont::internal::BufferInfo& src) const override;
35 
36  VTKM_CONT void CopyHostToDevice(const vtkm::cont::internal::BufferInfo& src,
37  const vtkm::cont::internal::BufferInfo& dest) const override;
38 
39  VTKM_CONT vtkm::cont::internal::BufferInfo CopyDeviceToHost(
40  const vtkm::cont::internal::BufferInfo& src) const override;
41 
42  VTKM_CONT void CopyDeviceToHost(const vtkm::cont::internal::BufferInfo& src,
43  const vtkm::cont::internal::BufferInfo& dest) const override;
44 
45  VTKM_CONT vtkm::cont::internal::BufferInfo CopyDeviceToDevice(
46  const vtkm::cont::internal::BufferInfo& src) const override;
47 
48  VTKM_CONT void CopyDeviceToDevice(const vtkm::cont::internal::BufferInfo& src,
49  const vtkm::cont::internal::BufferInfo& dest) const override;
50 
51  VTKM_CONT void DeleteRawPointer(void* mem) const override;
52 };
53 }
54 }
55 } // namespace vtkm::cont::internal
56 
57 #endif //vtk_m_cont_internal_DeviceAdapterMemoryManagerShared_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::BufferSizeType
vtkm::Int64 BufferSizeType
Definition: DeviceAdapterMemoryManager.h:27
DeviceAdapterMemoryManager.h
VTKM_CONT_EXPORT
#define VTKM_CONT_EXPORT
Definition: vtkm_cont_export.h:44
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57