Modifier and Type | Method and Description |
---|---|
AllocationPoint |
Allocator.allocateMemory(DataBuffer buffer,
AllocationShape requiredMemory,
AllocationStatus location,
boolean initialize)
This method allocates required chunk of memory in specific location
PLEASE NOTE: Do not use this method, unless you're 100% sure what you're doing
|
AllocationPoint |
Allocator.allocateMemory(DataBuffer buffer,
AllocationShape requiredMemory,
boolean initialize)
This method allocates required chunk of memory
|
org.bytedeco.javacpp.Pointer |
Allocator.getPointer(DataBuffer buffer,
AllocationShape shape,
boolean isView,
CudaContext context)
This method returns actual device pointer valid for specified shape of current object
|
Modifier and Type | Method and Description |
---|---|
void |
Lock.shapeReadLock(Object object,
AllocationShape shape)
This method acquires shape-level read lock, and read locks for object and global
|
void |
RRWLock.shapeReadLock(Object object,
AllocationShape shape)
This method acquires shape-level read lock, and read locks for object and global
|
void |
Lock.shapeReadUnlock(Object object,
AllocationShape shape)
This method releases shape-level read lock, and read locks for object and global
|
void |
RRWLock.shapeReadUnlock(Object object,
AllocationShape shape)
This method releases shape-level read lock, and read locks for object and global
|
void |
Lock.shapeWriteLock(Object object,
AllocationShape shape)
This method acquires shape-level write lock, and read locks for object and global
|
void |
RRWLock.shapeWriteLock(Object object,
AllocationShape shape)
This method acquires shape-level write lock, and read locks for object and global
|
void |
Lock.shapeWriteUnlock(Object object,
AllocationShape shape)
This method releases shape-level write lock, and read locks for object and global
|
void |
RRWLock.shapeWriteUnlock(Object object,
AllocationShape shape)
This method releases shape-level write lock, and read locks for object and global
|
Modifier and Type | Method and Description |
---|---|
AllocationPoint |
AtomicAllocator.allocateMemory(DataBuffer buffer,
AllocationShape requiredMemory,
AllocationStatus location,
boolean initialize)
This method allocates required chunk of memory in specific location
|
AllocationPoint |
AtomicAllocator.allocateMemory(DataBuffer buffer,
AllocationShape requiredMemory,
boolean initialize)
This method allocates required chunk of memory
|
org.bytedeco.javacpp.Pointer |
AtomicAllocator.getPointer(DataBuffer buffer,
AllocationShape shape,
boolean isView,
CudaContext context)
Deprecated.
|
Constructor and Description |
---|
NestedPoint(AllocationShape shape) |
Modifier and Type | Method and Description |
---|---|
static AllocationShape |
AllocationUtils.buildAllocationShape(DataBuffer buffer)
This method returns AllocationShape for the whole DataBuffer.
|
static AllocationShape |
AllocationUtils.buildAllocationShape(INDArray array)
This method returns AllocationShape for specific array, that takes in account its real shape: offset, length, etc
|
static AllocationShape |
AllocationUtils.buildAllocationShape(JCudaBuffer buffer)
This method returns AllocationShape for specific buffer, that takes in account its real shape: offset, length, etc
|
Modifier and Type | Method and Description |
---|---|
static long |
AllocationUtils.getByteOffset(AllocationShape shape)
This method returns byte offset based on AllocationShape
|
static int |
AllocationUtils.getElementSize(AllocationShape shape) |
static long |
AllocationUtils.getRequiredMemory(AllocationShape shape) |
Modifier and Type | Method and Description |
---|---|
AllocationStatus |
Balancer.makeDemoteDecision(Integer deviceId,
AllocationPoint point,
AllocationShape shape)
Deprecated.
This method checks, if it's worth moving some memory region to host
|
AllocationStatus |
Balancer.makePromoteDecision(Integer deviceId,
AllocationPoint point,
AllocationShape shape)
Deprecated.
This method checks, if it's worth moving some memory region to device
|
Modifier and Type | Method and Description |
---|---|
PointersPair |
MemoryHandler.alloc(AllocationStatus targetMode,
AllocationPoint point,
AllocationShape shape,
boolean initialize)
Allocate specified memory chunk on specified device/host
|
void |
MemoryHandler.copyback(AllocationPoint point,
AllocationShape shape)
Copies memory from device to host, if needed.
|
void |
MemoryHandler.copyforward(AllocationPoint point,
AllocationShape shape)
Copies memory from host buffer to device.
|
void |
MemoryHandler.fallback(AllocationPoint point,
AllocationShape shape)
Copies memory from device to zero-copy memory
|
void |
MemoryHandler.relocate(AllocationStatus currentStatus,
AllocationStatus targetStatus,
AllocationPoint point,
AllocationShape shape,
CudaContext context)
Relocates specific chunk of memory from one storage to another
|
Modifier and Type | Method and Description |
---|---|
PointersPair |
CudaZeroHandler.alloc(AllocationStatus targetMode,
AllocationPoint point,
AllocationShape shape,
boolean initialize)
Allocate specified memory chunk on specified device/host
|
void |
CudaZeroHandler.copyback(AllocationPoint point,
AllocationShape shape)
Deprecated.
|
void |
CudaZeroHandler.copyforward(AllocationPoint point,
AllocationShape shape)
Deprecated.
|
void |
CudaZeroHandler.fallback(AllocationPoint point,
AllocationShape shape)
Deprecated.
|
void |
CudaZeroHandler.relocate(AllocationStatus currentStatus,
AllocationStatus targetStatus,
AllocationPoint point,
AllocationShape shape,
CudaContext context)
Copies specific chunk of memory from one storage to another
Possible directions: HOST -> DEVICE, DEVICE -> HOST
|
Modifier and Type | Method and Description |
---|---|
PointersPair |
MemoryProvider.malloc(AllocationShape shape,
AllocationPoint point,
AllocationStatus location)
This method provides PointersPair to memory chunk specified by AllocationShape
|
Modifier and Type | Field and Description |
---|---|
protected ConcurrentHashMap<Integer,ConcurrentHashMap<AllocationShape,CudaCachingZeroProvider.CacheHolder>> |
CudaFullCachingProvider.deviceCache |
protected ConcurrentHashMap<AllocationShape,CudaCachingZeroProvider.CacheHolder> |
CudaCachingZeroProvider.zeroCache |
Modifier and Type | Method and Description |
---|---|
protected void |
CudaCachingZeroProvider.ensureCacheHolder(AllocationShape shape) |
protected void |
CudaFullCachingProvider.ensureDeviceCacheHolder(Integer deviceId,
AllocationShape shape)
This method checks, if storage contains holder for specified shape
|
PointersPair |
CudaFullCachingProvider.malloc(AllocationShape shape,
AllocationPoint point,
AllocationStatus location)
This method provides PointersPair to memory chunk specified by AllocationShape
PLEASE NOTE: This method can actually ignore malloc request, and give out previously cached free memory chunk with equal shape.
|
PointersPair |
CudaDirectProvider.malloc(AllocationShape shape,
AllocationPoint point,
AllocationStatus location)
This method provides PointersPair to memory chunk specified by AllocationShape
|
PointersPair |
CudaCachingZeroProvider.malloc(AllocationShape shape,
AllocationPoint point,
AllocationStatus location)
This method provides PointersPair to memory chunk specified by AllocationShape
PLEASE NOTE: This method can actually ignore malloc request, and give out previously cached free memory chunk with equal shape.
|
Constructor and Description |
---|
CacheHolder(AllocationShape shape,
AtomicLong counter) |
CachePreallocator(AllocationShape shape,
AllocationStatus location,
int numberOfEntries) |
Copyright © 2016. All Rights Reserved.