is_valid_event

Description

Returns true if event is a valid event. Otherwise
returns false.

Notes

Events can be used to identify commands enqueued to a command-queue from the host.
These events created by the OpenCL runtime can only be used on the host i.e. as events passed
in event_wait_list argument to various clEnqueue APIs or runtime APIs that take
events as arguments such as clRetainEvent,
clReleaseEvent,
clGetEventProfilingInfo.

Similarly, events can be used to identify commands enqueued to a device queue (from a kernel).
These event objects s cannot be passed to the host or used by OpenCL runtime APIs such as the
clEnqueueAPIs or runtime APIs that take event arguments.