public interface MemoryProvider
Modifier and Type | Method and Description |
---|---|
void |
free(AllocationPoint point)
This method frees specific chunk of memory, described by AllocationPoint passed in
|
PointersPair |
malloc(AllocationShape shape,
AllocationPoint point,
AllocationStatus location)
This method provides PointersPair to memory chunk specified by AllocationShape
|
boolean |
pingDeviceForFreeMemory(Integer deviceId,
long requiredMemory)
This method checks specified device for specified amount of memory
|
void |
purgeCache() |
PointersPair malloc(AllocationShape shape, AllocationPoint point, AllocationStatus location)
shape
- shape of desired memory chunkpoint
- target AllocationPoint structurelocation
- either HOST or DEVICEvoid free(AllocationPoint point)
point
- boolean pingDeviceForFreeMemory(Integer deviceId, long requiredMemory)
deviceId
- requiredMemory
- void purgeCache()
Copyright © 2016. All Rights Reserved.