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 |
addReadLane(cudaEvent_t event) |
void |
attachBuffer(BaseDataBuffer buffer)
This method stores WeakReference to original BaseCudaDataBuffer
|
void |
attachReference(GarbageReference 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
|
long |
getDeviceAccessTime()
Returns time, in milliseconds, when this point was accessed on device side
|
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() |
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
|
void |
setAllocationStatus(AllocationStatus status)
This method sets specified AllocationStatus for this point
|
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 addReadLane(cudaEvent_t event)
public void setLastEvent(cudaEvent_t event)
public cudaEvent_t getLastEvent()
public void attachBuffer(@NonNull BaseDataBuffer buffer)
buffer
- public void attachReference(GarbageReference 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.