public class AllocationPoint extends Object
Modifier and Type | Field and Description |
---|---|
protected static NativeOps |
nativeOps |
protected Queue<cudaEvent_t> |
readLane |
protected cudaEvent_t |
writeLane |
Constructor and Description |
---|
AllocationPoint() |
Modifier and Type | Method and Description |
---|---|
void |
acquireLock() |
void |
addReadLane(cudaEvent_t event) |
void |
addThreadToTrace(Long threadId) |
void |
attachBuffer(BaseDataBuffer buffer)
This method stores WeakReference to original BaseCudaDataBuffer
|
void |
attachReference(GarbageBufferReference reference) |
AllocationStatus |
getAllocationStatus()
This method returns current AllocationStatus for this point
|
DataBuffer |
getBuffer()
This method returns previously stored BaseCudaDataBuffer instance
PLEASE NOTE: Return value CAN be null
|
CudaContext |
getCurrentContext() |
long |
getDeviceAccessTime()
Returns time, in milliseconds, when this point was accessed on device side
|
int |
getDeviceId() |
org.bytedeco.javacpp.Pointer |
getDevicePointer()
This method returns CUDA pointer object for this allocation.
|
long |
getDeviceTicks() |
long |
getDeviceWriteTime()
Returns time when point was written on device last time
|
org.bytedeco.javacpp.Pointer |
getHostPointer()
This method returns CUDA pointer object for this allocation.
|
long |
getHostReadTime()
Returns time, in milliseconds, when this point was accessed on host side
|
long |
getHostWriteTime() |
cudaEvent_t |
getLastEvent() |
PointersPair |
getPointers() |
long |
getRealDeviceAccessTime() |
List<Long> |
getThreadsTrace() |
boolean |
isActualOnDeviceSide()
This method returns, if device side has actual copy of data
|
boolean |
isActualOnHostSide()
This method returns, if host side has actual copy of data
|
boolean |
isEnqueued() |
void |
markEnqueued(boolean reallyEnqueued) |
void |
releaseLock() |
void |
setAllocationStatus(AllocationStatus status)
This method sets specified AllocationStatus for this point
|
void |
setCurrentContext(CudaContext context) |
void |
setDeviceId(int deviceId) |
void |
setLastEvent(cudaEvent_t event) |
void |
setPointers(PointersPair pointerInfo)
This method sets CUDA pointer for this allocation.
|
void |
tackDevice() |
void |
tickDeviceRead() |
void |
tickDeviceToHost()
This method sets device access time equal to host write time
|
void |
tickDeviceWrite()
This method sets time when this point was changed on device
|
void |
tickHostRead() |
void |
tickHostWrite()
This method sets time when this point was changed on host
|
String |
toString() |
protected static final NativeOps nativeOps
protected volatile cudaEvent_t writeLane
protected Queue<cudaEvent_t> readLane
public void acquireLock()
public void releaseLock()
public int getDeviceId()
public void setDeviceId(int deviceId)
public boolean isEnqueued()
public void markEnqueued(boolean reallyEnqueued)
public CudaContext getCurrentContext()
public void setCurrentContext(CudaContext context)
public void addReadLane(cudaEvent_t event)
public void setLastEvent(cudaEvent_t event)
public void addThreadToTrace(Long threadId)
public cudaEvent_t getLastEvent()
public void attachBuffer(@NonNull BaseDataBuffer buffer)
buffer
- public void attachReference(GarbageBufferReference reference)
public DataBuffer getBuffer()
public AllocationStatus getAllocationStatus()
public void setAllocationStatus(@NonNull AllocationStatus status)
status
- public org.bytedeco.javacpp.Pointer getDevicePointer()
public org.bytedeco.javacpp.Pointer getHostPointer()
public void setPointers(@NonNull PointersPair pointerInfo)
pointerInfo
- CUDA pointers wrapped into DevicePointerInfopublic PointersPair getPointers()
public long getDeviceTicks()
public void tickDeviceRead()
public void tackDevice()
public long getHostReadTime()
public long getHostWriteTime()
public long getRealDeviceAccessTime()
public long getDeviceAccessTime()
public long getDeviceWriteTime()
public void tickHostRead()
public void tickDeviceWrite()
public void tickHostWrite()
public boolean isActualOnHostSide()
public boolean isActualOnDeviceSide()
public void tickDeviceToHost()
Copyright © 2016. All Rights Reserved.