[gegl/gsoc2011-opencl: 11/14] More functions stubs added



commit 5ac44c73eca0da4e611113946fa4dfd006920d40
Author: Victor Oliveira <victormatheus gmail com>
Date:   Tue May 17 17:10:25 2011 -0300

    More functions stubs added

 gegl/opencl/gegl-cl-init.c  |    3 +++
 gegl/opencl/gegl-cl-init.h  |    4 ++++
 gegl/opencl/gegl-cl-types.h |    2 ++
 3 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gegl/opencl/gegl-cl-init.c b/gegl/opencl/gegl-cl-init.c
index 0502ad1..6ada529 100644
--- a/gegl/opencl/gegl-cl-init.c
+++ b/gegl/opencl/gegl-cl-init.c
@@ -113,9 +113,12 @@ gegl_cl_init (GError **error)
       CL_LOAD_FUNCTION (clGetDeviceInfo)
 
       CL_LOAD_FUNCTION (clCreateContext)
+      CL_LOAD_FUNCTION (clCreateContextFromType)
       CL_LOAD_FUNCTION (clCreateCommandQueue)
       CL_LOAD_FUNCTION (clCreateProgramWithSource)
       CL_LOAD_FUNCTION (clBuildProgram)
+      CL_LOAD_FUNCTION (clGetProgramBuildInfo)
+
       CL_LOAD_FUNCTION (clCreateKernel)
       CL_LOAD_FUNCTION (clSetKernelArg)
       CL_LOAD_FUNCTION (clGetKernelWorkGroupInfo)
diff --git a/gegl/opencl/gegl-cl-init.h b/gegl/opencl/gegl-cl-init.h
index 022140e..347a0dc 100644
--- a/gegl/opencl/gegl-cl-init.h
+++ b/gegl/opencl/gegl-cl-init.h
@@ -17,9 +17,11 @@ t_clGetDeviceIDs    gegl_clGetDeviceIDs    = NULL;
 t_clGetDeviceInfo   gegl_clGetDeviceInfo   = NULL;
 
 t_clCreateContext           gegl_clCreateContext           = NULL;
+t_clCreateContextFromType   gegl_clCreateContextFromType   = NULL;
 t_clCreateCommandQueue      gegl_clCreateCommandQueue      = NULL;
 t_clCreateProgramWithSource gegl_clCreateProgramWithSource = NULL;
 t_clBuildProgram            gegl_clBuildProgram            = NULL;
+t_clGetProgramBuildInfo     gegl_clGetProgramBuildInfo     = NULL;
 t_clCreateKernel            gegl_clCreateKernel            = NULL;
 t_clSetKernelArg            gegl_clSetKernelArg            = NULL;
 t_clGetKernelWorkGroupInfo  gegl_clGetKernelWorkGroupInfo  = NULL;
@@ -42,9 +44,11 @@ extern t_clGetDeviceIDs    gegl_clGetDeviceIDs;
 extern t_clGetDeviceInfo   gegl_clGetDeviceInfo;
 
 extern t_clCreateContext           gegl_clCreateContext;
+extern t_clCreateContextFromType   gegl_clCreateContextFromType;
 extern t_clCreateCommandQueue      gegl_clCreateCommandQueue;
 extern t_clCreateProgramWithSource gegl_clCreateProgramWithSource;
 extern t_clBuildProgram            gegl_clBuildProgram;
+extern t_clGetProgramBuildInfo     gegl_clGetProgramBuildInfo;
 extern t_clCreateKernel            gegl_clCreateKernel;
 extern t_clSetKernelArg            gegl_clSetKernelArg;
 extern t_clGetKernelWorkGroupInfo  gegl_clGetKernelWorkGroupInfo;
diff --git a/gegl/opencl/gegl-cl-types.h b/gegl/opencl/gegl-cl-types.h
index 9d23e0c..16d0580 100644
--- a/gegl/opencl/gegl-cl-types.h
+++ b/gegl/opencl/gegl-cl-types.h
@@ -14,9 +14,11 @@ typedef cl_int (*t_clGetDeviceIDs)    (cl_platform_id, cl_device_type, cl_uint,
 typedef cl_int (*t_clGetDeviceInfo)   (cl_device_id, cl_device_info, size_t, void *, size_t *);
 
 typedef cl_context        (*t_clCreateContext          ) (const cl_context_properties *, cl_uint, const cl_device_id *, void (CL_CALLBACK *) (const char *, const void *, size_t, void *), void *, cl_int *);
+typedef cl_context        (*t_clCreateContextFromType  ) (cl_context_properties *, cl_device_type, void  (*pfn_notify) (const char *, const void *, size_t, void *), void *, cl_int  *);
 typedef cl_command_queue  (*t_clCreateCommandQueue     ) (cl_context context, cl_device_id device, cl_command_queue_properties properties, cl_int *errcode_ret);
 typedef cl_program        (*t_clCreateProgramWithSource) (cl_context, cl_uint, const char **, const size_t *, cl_int *);
 typedef cl_int            (*t_clBuildProgram           ) (cl_program, cl_uint, const cl_device_id *, const char *, void (CL_CALLBACK *)(cl_program, void *), void *);
+typedef cl_int            (*t_clGetProgramBuildInfo    ) (cl_program, cl_device_id, cl_program_build_info, size_t, void *, size_t *);
 typedef cl_kernel         (*t_clCreateKernel           ) (cl_program, const char *, cl_int *);
 typedef cl_int            (*t_clSetKernelArg           ) (cl_kernel, cl_uint, size_t, const void *);
 typedef cl_int            (*t_clGetKernelWorkGroupInfo ) (cl_kernel, cl_device_id, cl_kernel_work_group_info, size_t, void *, size_t *);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]