Viskores  1.0
DeviceAdapterMemoryManagerShared.h
Go to the documentation of this file.
1 //============================================================================
2 // The contents of this file are covered by the Viskores license. See
3 // LICENSE.txt for details.
4 //
5 // By contributing to this file, all contributors agree to the Developer
6 // Certificate of Origin Version 1.1 (DCO 1.1) as stated in DCO.txt.
7 //============================================================================
8 
9 //============================================================================
10 // Copyright (c) Kitware, Inc.
11 // All rights reserved.
12 // See LICENSE.txt for details.
13 //
14 // This software is distributed WITHOUT ANY WARRANTY; without even
15 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 // PURPOSE. See the above copyright notice for more information.
17 //============================================================================
18 #ifndef viskores_cont_internal_DeviceAdapterMemoryManagerShared_h
19 #define viskores_cont_internal_DeviceAdapterMemoryManagerShared_h
20 
22 
23 namespace viskores
24 {
25 namespace cont
26 {
27 namespace internal
28 {
29 
36 class VISKORES_CONT_EXPORT DeviceAdapterMemoryManagerShared : public DeviceAdapterMemoryManagerBase
37 {
38 public:
39  VISKORES_CONT BufferInfo Allocate(viskores::BufferSizeType size) const override;
40 
41  VISKORES_CONT viskores::cont::internal::BufferInfo CopyHostToDevice(
42  const viskores::cont::internal::BufferInfo& src) const override;
43 
44  VISKORES_CONT void CopyHostToDevice(
45  const viskores::cont::internal::BufferInfo& src,
46  const viskores::cont::internal::BufferInfo& dest) const override;
47 
48  VISKORES_CONT viskores::cont::internal::BufferInfo CopyDeviceToHost(
49  const viskores::cont::internal::BufferInfo& src) const override;
50 
51  VISKORES_CONT void CopyDeviceToHost(
52  const viskores::cont::internal::BufferInfo& src,
53  const viskores::cont::internal::BufferInfo& dest) const override;
54 
55  VISKORES_CONT viskores::cont::internal::BufferInfo CopyDeviceToDevice(
56  const viskores::cont::internal::BufferInfo& src) const override;
57 
58  VISKORES_CONT void CopyDeviceToDevice(
59  const viskores::cont::internal::BufferInfo& src,
60  const viskores::cont::internal::BufferInfo& dest) const override;
61 
62  VISKORES_CONT void DeleteRawPointer(void* mem) const override;
63 };
64 }
65 }
66 } // namespace viskores::cont::internal
67 
68 #endif //viskores_cont_internal_DeviceAdapterMemoryManagerShared_h
DeviceAdapterMemoryManager.h
VISKORES_CONT
#define VISKORES_CONT
Definition: ExportMacros.h:65
viskores
Groups connected points that have the same field value.
Definition: Atomic.h:27
viskores::BufferSizeType
viskores::Int64 BufferSizeType
Definition: DeviceAdapterMemoryManager.h:35