java.lang.Object
api.Native
au.notzed.zcl.CLObject
au.notzed.zcl.CLEvent
public class CLEvent extends CLObject
Interface for cl_event.
-
Constructor Summary
Constructors Constructor Description CLEvent(jdk.incubator.foreign.MemoryAddress p)
-
Method Summary
Modifier and Type Method Description int
getCommandExecutionStatus()
Get CL_EVENT_COMMAND_EXECUTION_STATUS.CLCommandQueue
getCommandQueue()
Get CL_EVENT_COMMAND_QUEUE.int
getCommandType()
Get CL_EVENT_COMMAND_TYPE.CLContext
getContext()
Get CL_EVENT_CONTEXT.long
getProfilingCommandComplete()
long
getProfilingCommandEnd()
long
getProfilingCommandQueued()
long
getProfilingCommandStart()
long
getProfilingCommandSubmit()
void
release()
void
setEventCallback(int type, CLEventNotify notify)
Call clSetEventCallback(type, notify).void
setUserEventStatus(int status)
Call clSetUserEventStatus(this, status).Methods inherited from class au.notzed.zcl.CLObject
getInfo, getInfo, getInfo, getInfoAny, getInfoAny, getInfoAny, getInfoAny, getInfoAnyV, getInfoByteV, getInfoByteV, getInfoInt, getInfoInt, getInfoInt, getInfoInt, getInfoJava, getInfoLong, getInfoLong, getInfoLong, getInfoLong, getInfoLongV, getInfoLongV, getInfoPropertyV, getInfoSizeT, getInfoSizeT, getInfoSizeT, getInfoSizeTA, getInfoString, getInfoString, getInfoString, getInfoString, release, release
Methods inherited from class api.Native
addr, addr, addr, debugDumpReachable, debugFlushAll, downcallHandle, downcallHandle, dumpSignature, freeUpcallStub, getAddr, getAddr, getByte, getByte, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, loadLibraries, parseStruct, parseUnion, release, release, resolve, setAddr, setAddr, setByte, setByte, setDouble, setDouble, setFloat, setFloat, setInt, setInt, setLong, setLong, setShort, setShort, toAddrV, toAddrV, toAddrV, toByteV, toByteV, toLongV, toLongV, toObjectV, toObjectV, toString, upcallStub
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CLEvent
public CLEvent(jdk.incubator.foreign.MemoryAddress p)
-
-
Method Details
-
release
public void release() -
setUserEventStatus
Call clSetUserEventStatus(this, status).This must only be called on user events.
- Parameters:
status
-- Throws:
CLRuntimeException
- Since:
- OpenCL 1.1
-
setEventCallback
Call clSetEventCallback(type, notify). Adds a new callback for the given state.- Parameters:
type
-notify
-- Throws:
CLRuntimeException
- Since:
- OpenCL 1.1
-
getCommandQueue
Get CL_EVENT_COMMAND_QUEUE.This will return a new CLCommandQueue for each invocation.
- Returns:
-
getContext
Get CL_EVENT_CONTEXT.This will return a new CLContext for each invocation.
- Returns:
-
getCommandType
public int getCommandType()Get CL_EVENT_COMMAND_TYPE.- Returns:
-
getCommandExecutionStatus
public int getCommandExecutionStatus()Get CL_EVENT_COMMAND_EXECUTION_STATUS.Negative values indicate an error taken from the standard OpenCL error definitions.
- Returns:
-
getProfilingCommandQueued
public long getProfilingCommandQueued() -
getProfilingCommandSubmit
public long getProfilingCommandSubmit() -
getProfilingCommandStart
public long getProfilingCommandStart() -
getProfilingCommandEnd
public long getProfilingCommandEnd() -
getProfilingCommandComplete
public long getProfilingCommandComplete()
-