Functions | |
size_t DNNL_API | dnnl_engine_get_count (dnnl_engine_kind_t kind) |
Returns the number of engines of a particular kind . | |
dnnl_status_t DNNL_API | dnnl_engine_create (dnnl_engine_t *engine, dnnl_engine_kind_t kind, size_t index) |
Creates an engine of particular kind and index . | |
dnnl_status_t DNNL_API | dnnl_engine_create_ocl (dnnl_engine_t *engine, dnnl_engine_kind_t kind, cl_device_id device, cl_context context) |
Creates an engine of particular kind associated with a given OpenCL device and context objects. More... | |
dnnl_status_t DNNL_API | dnnl_engine_get_kind (dnnl_engine_t engine, dnnl_engine_kind_t *kind) |
Returns the kind of an engine . | |
dnnl_status_t DNNL_API | dnnl_engine_get_ocl_context (dnnl_engine_t engine, cl_context *context) |
Returns an OpenCL context associated with an engine . | |
dnnl_status_t DNNL_API | dnnl_engine_get_ocl_device (dnnl_engine_t engine, cl_device_id *device) |
Returns an OpenCL device associated with an engine . | |
dnnl_status_t DNNL_API | dnnl_engine_destroy (dnnl_engine_t engine) |
Destroys an engine . | |
dnnl_status_t DNNL_API dnnl_engine_create_ocl | ( | dnnl_engine_t * | engine, |
dnnl_engine_kind_t | kind, | ||
cl_device_id | device, | ||
cl_context | context | ||
) |
Creates an engine
of particular kind
associated with a given OpenCL device
and context
objects.