Repository navigation
Expand file tree
/
Copy pathMemoryManager.cuh
More file actions
36 lines (25 loc) · 1.94 KB
/
Copy pathMemoryManager.cuh
File metadata and controls
36 lines (25 loc) · 1.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include "Common.cuh"
#include "Flags.cuh"
#include "Types.h"
EXTERN_C
{
EXPORT int _HostToHostCopy(MemoryBuffer& dest, const MemoryBuffer& source);
EXPORT int _HostToHostCopyRaw(const ptr_t destPointer, const ptr_t sourcePointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
EXPORT int _HostToDeviceCopy(MemoryBuffer& dest, const MemoryBuffer& source);
EXPORT int _HostToDeviceCopyRaw(const ptr_t destPointer, const ptr_t sourcePointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
EXPORT int _DeviceToHostCopy(MemoryBuffer& dest, const MemoryBuffer& source);
EXPORT int _DeviceToHostCopyRaw(const ptr_t destPointer, const ptr_t sourcePointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
EXPORT int _DeviceToDeviceCopy(MemoryBuffer& dest, const MemoryBuffer& source);
EXPORT int _DeviceToDeviceCopyRaw(const ptr_t destPointer, const ptr_t sourcePointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
EXPORT int _AutoCopy(MemoryBuffer& dest, const MemoryBuffer& source);
EXPORT int _AutoCopyRaw(const ptr_t destPointer, const ptr_t sourcePointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
EXPORT int _Alloc(MemoryBuffer& ptr);
EXPORT int _AllocRaw(ptr_t& pointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
EXPORT int _AllocHost(MemoryBuffer& ptr);
EXPORT int _AllocHostRaw(ptr_t& pointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
EXPORT int _Free(const MemoryBuffer& ptr);
EXPORT int _FreeRaw(const ptr_t pointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
EXPORT int _FreeHost(const MemoryBuffer& ptr);
EXPORT int _FreeHostRaw(const ptr_t pointer, const unsigned size, const MemorySpace memorySpace, const MathDomain mathDomain);
}