Module notzed.zcl
Package au.notzed.zcl

Class CLEvent

java.lang.Object
api.Native
au.notzed.zcl.CLObject
au.notzed.zcl.CLEvent

public class CLEvent
extends CLObject
Interface for cl_event.
  • Constructor Details

    • CLEvent

      public CLEvent​(jdk.incubator.foreign.MemoryAddress p)
  • Method Details

    • release

      public void release()
      Overrides:
      release in class Native
    • setUserEventStatus

      public void setUserEventStatus​(int status) throws CLRuntimeException
      Call clSetUserEventStatus(this, status).

      This must only be called on user events.

      Parameters:
      status -
      Throws:
      CLRuntimeException
      Since:
      OpenCL 1.1
    • setEventCallback

      public void setEventCallback​(int type, CLEventNotify notify) throws CLRuntimeException
      Call clSetEventCallback(type, notify). Adds a new callback for the given state.
      Parameters:
      type -
      notify -
      Throws:
      CLRuntimeException
      Since:
      OpenCL 1.1
    • getCommandQueue

      public CLCommandQueue getCommandQueue()
      Get CL_EVENT_COMMAND_QUEUE.

      This will return a new CLCommandQueue for each invocation.

      Returns:
    • getContext

      public CLContext 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()