From 54751a0818673d950a33e272036fccb1005959b5 Mon Sep 17 00:00:00 2001 From: Dag Lem Date: Thu, 16 May 2013 23:38:49 +0200 Subject: [PATCH] Stubs for C++ Bindings Signed-off-by: Dag Lem Reviewed-by: Zhigang Gong --- src/cl_api.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/cl_api.c b/src/cl_api.c index cfbb44f..3981554 100644 --- a/src/cl_api.c +++ b/src/cl_api.c @@ -87,6 +87,31 @@ clGetDeviceInfo(cl_device_id device, param_value_size_ret); } +cl_int +clCreateSubDevices(cl_device_id in_device, + const cl_device_partition_property * properties, + cl_uint num_devices, + cl_device_id * out_devices, + cl_uint * num_devices_ret) +{ + NOT_IMPLEMENTED; + return 0; +} + +cl_int +clRetainDevice(cl_device_id device) +{ + // XXX stub for C++ Bindings + return CL_SUCCESS; +} + +cl_int +clReleaseDevice(cl_device_id device) +{ + // XXX stub for C++ Bindings + return CL_SUCCESS; +} + cl_context clCreateContext(const cl_context_properties * properties, cl_uint num_devices, -- 2.7.4