enable clGetContextInfo with CL_CONTEXT_DEVICES
authorMario Kicherer <dev@kicherer.org>
Mon, 6 May 2013 15:49:50 +0000 (17:49 +0200)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Tue, 7 May 2013 07:59:01 +0000 (15:59 +0800)
commitec74bff6b413eb0a09d6094e6ad24dc6348f4642
treeb94816d67fd1a5571c03463f84f191f14be2d194
parent2e22bbe82133ad3c2c21a6cfa6407fe235c4bf18
enable clGetContextInfo with CL_CONTEXT_DEVICES

The following patch enables the clGetContextInfo query with CL_CONTEXT_DEVICES.
Applications can query the required size of the result buffer and then request
the cl_device_id of the available devices in this context.

Signed-off-by: Mario Kicherer <dev@kicherer.org>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_api.c