[Beignet] [PATCH 2/2] Stubs for C++ Bindings

Dag Lem dag at nimrod.no
Thu May 16 14:38:49 PDT 2013


Signed-off-by: Dag Lem <dag at nimrod.no>
---
 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,
-- 
1.8.1.4



More information about the Beignet mailing list