MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The CudaDnnMemoryTracker is used for diagnostics in that it helps estimate the amount of memory that a Net will use. More...
Public Member Functions | |
CudaDnnMemoryTracker (bool bEnableMemoryTrace=false) | |
The CudaDnnMemoryTracker constructor. More... | |
long | AllocMemory (long hKernel, int nDeviceID, long hMemory, ulong lSize, bool bHalf) |
Simulate a memory allocation. More... | |
void | FreeMemory (long hKernel, int nDeviceID, long hMemory) |
Simulate a memory free. More... | |
Properties | |
bool | EnableMemoryTrace [getset] |
Enable/disable the memory trace - this feature is only available in debug builds. More... | |
ulong? | TotalItemsAllocated [get] |
Returns the total number of items allocated. More... | |
ulong | TotalMemoryUsed [get] |
Returns the total amount of memory used (in bytes). More... | |
string | TotalMemoryUsedText [get] |
Returns a text string describing the total amount of memory used (in bytes). More... | |
The CudaDnnMemoryTracker is used for diagnostics in that it helps estimate the amount of memory that a Net will use.
T | Specifies the base type float or double. Using float is recommended to conserve GPU memory. |
Definition at line 14 of file CudaDnnMemoryTracker.cs.
MyCaffe.common.CudaDnnMemoryTracker< T >.CudaDnnMemoryTracker | ( | bool | bEnableMemoryTrace = false | ) |
The CudaDnnMemoryTracker constructor.
bEnableMemoryTrace | Optionally, specifies to enable the memory trace (only supported in debug builds). |
Definition at line 23 of file CudaDnnMemoryTracker.cs.
long MyCaffe.common.CudaDnnMemoryTracker< T >.AllocMemory | ( | long | hKernel, |
int | nDeviceID, | ||
long | hMemory, | ||
ulong | lSize, | ||
bool | bHalf | ||
) |
Simulate a memory allocation.
hKernel | Specifies the CudaDnn kernel that holds the allocated memory. |
nDeviceID | Specifies the CudaDnn device ID on which the memory was allocated. |
hMemory | Specifies the CudaDnn handle to the memory. |
lSize | Specifies the size of the memory (in items). |
bHalf | Specifies whether or not half memory is used. |
Definition at line 37 of file CudaDnnMemoryTracker.cs.
void MyCaffe.common.CudaDnnMemoryTracker< T >.FreeMemory | ( | long | hKernel, |
int | nDeviceID, | ||
long | hMemory | ||
) |
Simulate a memory free.
hKernel | Specifies the CudaDnn kernel that holds the allocated memory. |
nDeviceID | Specifies the CudaDnn device ID on which the memory was allocated. |
hMemory | Specifies the CudaDnn handle to the memory. |
Definition at line 62 of file CudaDnnMemoryTracker.cs.
|
getset |
Enable/disable the memory trace - this feature is only available in debug builds.
Definition at line 81 of file CudaDnnMemoryTracker.cs.
|
get |
Returns the total number of items allocated.
Definition at line 90 of file CudaDnnMemoryTracker.cs.
|
get |
Returns the total amount of memory used (in bytes).
Definition at line 112 of file CudaDnnMemoryTracker.cs.
|
get |
Returns a text string describing the total amount of memory used (in bytes).
Definition at line 123 of file CudaDnnMemoryTracker.cs.