Skip to content

Commit b148565

Browse files
committed
allow abnormal termination for in-flight commands when context is deleted
When a context is deleted, any in-flight commands (commands that have not completed) may be abnormally terminated.
1 parent 7b5621b commit b148565

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
@@ -6414,7 +6414,7 @@ This also permits an application to overlap the placement of memory objects
64146414
with other unrelated operations before these memory objects are needed
64156415
potentially hiding transfer latencies.
64166416
Once the event, returned from {clEnqueueMigrateMemObjects}, has been marked
6417-
CL_COMPLETE the memory objects specified in _mem_objects_ have been
6417+
{CL_COMPLETE} the memory objects specified in _mem_objects_ have been
64186418
successfully migrated to the device associated with _command_queue_.
64196419
The migrated memory object shall remain resident on the device until another
64206420
command is enqueued that either implicitly or explicitly migrates it away.

0 commit comments

Comments
 (0)