Skip to content

Unclear semantics of clReImportSemaphoreSyncFdKHR in regards to clEnqueueWaitSemaphoresKHR and clEnqueueSignalSemaphoresKHR #1407

@karolherbst

Description

@karolherbst

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions