rmlCreateContextFromClQueue
Creates a context from an OpenCL context.
rml_status rmlCreateContextFromClQueue( |
void* queue /* cl_command_queue */, |
rml_context* context); |
API
OpenCL Interoperation
Parameters
Parameter |
Input/Output |
Description |
---|---|---|
queue |
input |
An OpenCL command queue handle. |
context |
output |
A pointer to a resulting context handle. |
Return and Status Codes
Returns a valid context handle in case of success and status:
To get more details in case of failure, call rmlGetLastError().
The context should be released with rmlReleaseContext().