At the moment the spec doesn't specify if clEnqueueSignalSemaphoresKHR and clEnqueueWaitSemaphoresKHR operate on the semaphore already imported at call time or the currently imported semaphore once the queue reaches those commands.
I'd assume it's meant to operate on the already imported semaphore and clReImportSemaphoreSyncFdKHR just affects future calls to those. But I think this is a valid assumption to make just reading the specification.
I think "Calling clReImportSemaphoreSyncFdKHR is equivalent to destroying sema_object and re-creating it with the original sema_props from clCreateSemaphoreWithPropertiesKHR" can be read this way, but I think it's better to explicitly state this.
Any thoughts?
At the moment the spec doesn't specify if
clEnqueueSignalSemaphoresKHRandclEnqueueWaitSemaphoresKHRoperate on the semaphore already imported at call time or the currently imported semaphore once the queue reaches those commands.I'd assume it's meant to operate on the already imported semaphore and
clReImportSemaphoreSyncFdKHRjust affects future calls to those. But I think this is a valid assumption to make just reading the specification.I think "Calling clReImportSemaphoreSyncFdKHR is equivalent to destroying sema_object and re-creating it with the original sema_props from clCreateSemaphoreWithPropertiesKHR" can be read this way, but I think it's better to explicitly state this.
Any thoughts?