Skip to content

Commit 2d5761f

Browse files
authored
allow abnormal termination for in-flight commands when context is deleted (KhronosGroup#1341)
When a context is deleted, any in-flight commands (commands that have not completed) may be abnormally terminated.
1 parent 6556039 commit 2d5761f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

api/opencl_platform_layer.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3428,6 +3428,8 @@ include::{generated}/api/version-notes/clReleaseContext.asciidoc[]
34283428
After the reference count becomes zero and all the objects attached to
34293429
_context_ (such as memory objects, command-queues) are released, the
34303430
_context_ is deleted.
3431+
When the _context_ is deleted, any commands associated with the context that
3432+
have not completed may be abnormally terminated.
34313433
Using this function to release a reference that was not obtained by creating
34323434
the object or by calling {clRetainContext} causes undefined behavior.
34333435

api/opencl_runtime_layer.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6419,7 +6419,7 @@ This also permits an application to overlap the placement of memory objects
64196419
with other unrelated operations before these memory objects are needed
64206420
potentially hiding transfer latencies.
64216421
Once the event, returned from {clEnqueueMigrateMemObjects}, has been marked
6422-
CL_COMPLETE the memory objects specified in _mem_objects_ have been
6422+
{CL_COMPLETE} the memory objects specified in _mem_objects_ have been
64236423
successfully migrated to the device associated with _command_queue_.
64246424
The migrated memory object shall remain resident on the device until another
64256425
command is enqueued that either implicitly or explicitly migrates it away.

0 commit comments

Comments
 (0)