From fb39d5433eb27d80c05c884f8349605313ee6efb Mon Sep 17 00:00:00 2001 From: joselope Date: Tue, 9 Sep 2025 15:15:00 +0100 Subject: [PATCH 1/3] Clear clReImportSemaphoreSyncKhr semantics --- api/opencl_runtime_layer.asciidoc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/opencl_runtime_layer.asciidoc b/api/opencl_runtime_layer.asciidoc index 69a650c38..be7b7f6a0 100644 --- a/api/opencl_runtime_layer.asciidoc +++ b/api/opencl_runtime_layer.asciidoc @@ -13842,6 +13842,10 @@ _sema_object_ and re-creating it with the original _sema_props_ from be imported. The semaphore _sema_object_ must have originally imported an external handle of type {CL_SEMAPHORE_HANDLE_SYNC_FD_KHR}. +Calling {clReImportSemaphoreSyncFdKHR} after signaling the _sema_object_ or +calling {clReImportSemaphoreSyncFdKHR} after creating the _sema_object_ +with {clCreateSemaphoreWithPropertiesKHR} without an interleaving wait may +lead to undefined behavior. // refError From fe1a1c8827a9a7ae54b08e5293761073c5b6ce1c Mon Sep 17 00:00:00 2001 From: joselope Date: Thu, 11 Sep 2025 10:50:32 +0100 Subject: [PATCH 2/3] Reword reimport condition --- api/opencl_runtime_layer.asciidoc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/opencl_runtime_layer.asciidoc b/api/opencl_runtime_layer.asciidoc index be7b7f6a0..ad0fb3262 100644 --- a/api/opencl_runtime_layer.asciidoc +++ b/api/opencl_runtime_layer.asciidoc @@ -13842,10 +13842,8 @@ _sema_object_ and re-creating it with the original _sema_props_ from be imported. The semaphore _sema_object_ must have originally imported an external handle of type {CL_SEMAPHORE_HANDLE_SYNC_FD_KHR}. -Calling {clReImportSemaphoreSyncFdKHR} after signaling the _sema_object_ or -calling {clReImportSemaphoreSyncFdKHR} after creating the _sema_object_ -with {clCreateSemaphoreWithPropertiesKHR} without an interleaving wait may -lead to undefined behavior. +Calling {clReImportSemaphoreSyncFdKHR} when the last operation performed on +_sema_object_ was not a wait may lead to undefined behavior. // refError From 41f082406fb584f9492e914c52a0989bf5b857dd Mon Sep 17 00:00:00 2001 From: Jose Lopez Date: Tue, 23 Sep 2025 18:14:46 +0100 Subject: [PATCH 3/3] Update api/opencl_runtime_layer.asciidoc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Kévin Petit --- api/opencl_runtime_layer.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/opencl_runtime_layer.asciidoc b/api/opencl_runtime_layer.asciidoc index ad0fb3262..5c9804a0a 100644 --- a/api/opencl_runtime_layer.asciidoc +++ b/api/opencl_runtime_layer.asciidoc @@ -13843,7 +13843,7 @@ be imported. The semaphore _sema_object_ must have originally imported an external handle of type {CL_SEMAPHORE_HANDLE_SYNC_FD_KHR}. Calling {clReImportSemaphoreSyncFdKHR} when the last operation performed on -_sema_object_ was not a wait may lead to undefined behavior. +_sema_object_ was not a wait will result in undefined behavior. // refError