public class CudaConstantHandler extends Object implements ConstantHandler
Modifier and Type | Field and Description |
---|---|
protected Map<Integer,Map<ArrayDescriptor,DataBuffer>> |
buffersCache |
protected Map<Integer,AtomicLong> |
constantOffsets |
protected Map<Integer,org.bytedeco.javacpp.Pointer> |
deviceAddresses |
protected Map<Integer,Semaphore> |
deviceLocks |
protected FlowController |
flowController |
protected Semaphore |
lock |
protected NativeOps |
nativeOps |
protected List<DataBuffer> |
protector |
Constructor and Description |
---|
CudaConstantHandler() |
Modifier and Type | Method and Description |
---|---|
DataBuffer |
getConstantBuffer(double[] array) |
DataBuffer |
getConstantBuffer(float[] array) |
DataBuffer |
getConstantBuffer(int[] array) |
long |
moveToConstantSpace(DataBuffer dataBuffer) |
protected Map<Integer,AtomicLong> constantOffsets
protected Map<Integer,Map<ArrayDescriptor,DataBuffer>> buffersCache
protected NativeOps nativeOps
protected FlowController flowController
protected List<DataBuffer> protector
protected Semaphore lock
public long moveToConstantSpace(DataBuffer dataBuffer)
moveToConstantSpace
in interface ConstantHandler
public DataBuffer getConstantBuffer(int[] array)
getConstantBuffer
in interface ConstantHandler
public DataBuffer getConstantBuffer(float[] array)
getConstantBuffer
in interface ConstantHandler
public DataBuffer getConstantBuffer(double[] array)
getConstantBuffer
in interface ConstantHandler
Copyright © 2016. All Rights Reserved.