/** * A 64-bit value that describes the current device time counter in nanoseconds when the command identified by event starts execution on the device. */ @InfoName("CL_CL_PROFILING_COMMAND_START") public long getProfilingCommandStart() { return profilingInfos.getIntOrLong(getEntity(), CL_PROFILING_COMMAND_START); }
/** * Return the execution status of the command identified by event. <br> * @throws CLException is the execution status denotes an error */ @InfoName("CL_EVENT_COMMAND_EXECUTION_STATUS") public int getCommandExecutionStatusValue() { return infos.getInt(getEntity(), CL_EVENT_COMMAND_EXECUTION_STATUS); }
/** * A 64-bit value that describes the current device time counter in nanoseconds when the command identified by event starts execution on the device. */ @InfoName("CL_CL_PROFILING_COMMAND_START") public long getProfilingCommandStart() { return profilingInfos.getIntOrLong(getEntity(), CL_PROFILING_COMMAND_START); }
/** * A 64-bit value that describes the current device time counter in nanoseconds when the command identified by event that has been enqueued is submitted by the host to the device associated with the command- queue. */ @InfoName("CL_CL_PROFILING_COMMAND_SUBMIT") public long getProfilingCommandSubmit() { return profilingInfos.getIntOrLong(getEntity(), CL_PROFILING_COMMAND_SUBMIT); }
/** * Return the execution status of the command identified by event. <br> * @throws CLException is the execution status denotes an error */ @InfoName("CL_EVENT_COMMAND_EXECUTION_STATUS") public int getCommandExecutionStatusValue() { return infos.getInt(getEntity(), CL_EVENT_COMMAND_EXECUTION_STATUS); }
/** * A 64-bit value that describes the current device time counter in nanoseconds when the command identified by event is enqueued in a command-queue by the host. */ @InfoName("CL_CL_PROFILING_COMMAND_QUEUED") public long getProfilingCommandQueued() { return profilingInfos.getIntOrLong(getEntity(), CL_PROFILING_COMMAND_QUEUED); }
/** * A 64-bit value that describes the current device time counter in nanoseconds when the command identified by event that has been enqueued is submitted by the host to the device associated with the command- queue. */ @InfoName("CL_CL_PROFILING_COMMAND_SUBMIT") public long getProfilingCommandSubmit() { return profilingInfos.getIntOrLong(getEntity(), CL_PROFILING_COMMAND_SUBMIT); }
/** * A 64-bit value that describes the current device time counter in nanoseconds when the command identified by event has finished execution on the device. */ @InfoName("CL_CL_PROFILING_COMMAND_END") public long getProfilingCommandEnd() { return profilingInfos.getIntOrLong(getEntity(), CL_PROFILING_COMMAND_END); }
/** * A 64-bit value that describes the current device time counter in nanoseconds when the command identified by event is enqueued in a command-queue by the host. */ @InfoName("CL_CL_PROFILING_COMMAND_QUEUED") public long getProfilingCommandQueued() { return profilingInfos.getIntOrLong(getEntity(), CL_PROFILING_COMMAND_QUEUED); }
/** * A 64-bit value that describes the current device time counter in nanoseconds when the command identified by event has finished execution on the device. */ @InfoName("CL_CL_PROFILING_COMMAND_END") public long getProfilingCommandEnd() { return profilingInfos.getIntOrLong(getEntity(), CL_PROFILING_COMMAND_END); }
@Override protected void clear() { error(CL.clReleaseEvent(getEntity())); }
@Override protected void clear() { error(CL.clReleaseEvent(getEntity())); }
/** * Return the command associated with event. */ @InfoName("CL_EVENT_COMMAND_TYPE") public CommandType getCommandType() { return CommandType.getEnum(infos.getInt(getEntity(), CL_EVENT_COMMAND_TYPE)); }
/** * Return the command associated with event. */ @InfoName("CL_EVENT_COMMAND_TYPE") public CommandType getCommandType() { return CommandType.getEnum(infos.getInt(getEntity(), CL_EVENT_COMMAND_TYPE)); }
/** * Return the execution status of the command identified by event. <br> * @throws CLException is the execution status denotes an error */ public CommandExecutionStatus getCommandExecutionStatus() { int v = infos.getInt(getEntity(), CL_EVENT_COMMAND_EXECUTION_STATUS); CommandExecutionStatus status = CommandExecutionStatus.getEnum(v); if (status == null) error(v); return status; } /**
/** * Return the execution status of the command identified by event. <br> * @throws CLException is the execution status denotes an error */ public CommandExecutionStatus getCommandExecutionStatus() { int v = infos.getInt(getEntity(), CL_EVENT_COMMAND_EXECUTION_STATUS); CommandExecutionStatus status = CommandExecutionStatus.getEnum(v); if (status == null) error(v); return status; } /**
/** * Calls <a href="http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clSetEventCallback.html">clSetEventCallback</a>.<br> * Registers a user callback function for a specific command execution status. <br> * The registered callback function will be called when the execution status of command associated with event changes to the execution status specified by command_exec_status. * @param commandExecStatus specifies the command execution status for which the callback is registered. The command execution callback values for which a callback can be registered are: CL_COMPLETE. There is no guarantee that the callback functions registered for various execution status values for an event will be called in the exact order that the execution status of a command changes. * @param callback * @throws UnsupportedOperationException in OpenCL 1.0 * @since OpenCL 1.1 */ public void setCallback(int commandExecStatus, final EventCallback callback) { queue.getContext().getPlatform().requireMinVersionValue("clSetEventCallback", 1.1); error(CL.clSetEventCallback(getEntity(), commandExecStatus, eventCallbackPeer, JNI.newGlobalRef(callback))); }
/** * Calls <a href="http://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clSetEventCallback.html">clSetEventCallback</a>.<br> * Registers a user callback function for a specific command execution status. <br> * The registered callback function will be called when the execution status of command associated with event changes to the execution status specified by command_exec_status. * @param commandExecStatus specifies the command execution status for which the callback is registered. The command execution callback values for which a callback can be registered are: CL_COMPLETE. There is no guarantee that the callback functions registered for various execution status values for an event will be called in the exact order that the execution status of a command changes. * @param callback * @throws UnsupportedOperationException in OpenCL 1.0 * @since OpenCL 1.1 */ public void setCallback(int commandExecStatus, final EventCallback callback) { queue.getContext().getPlatform().requireMinVersionValue("clSetEventCallback", 1.1); error(CL.clSetEventCallback(getEntity(), commandExecStatus, eventCallbackPeer, JNI.newGlobalRef(callback))); }