Add clGetDeviceInfo(..., CL_BUILT_IN_KERNELS, ...)
authorSimon Richter <Simon.Richter@hogyros.de>
Mon, 13 May 2013 18:21:16 +0000 (20:21 +0200)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Fri, 17 May 2013 06:18:05 +0000 (14:18 +0800)
Currently, there are no built-in kernels, so this function returns an empty
string.

Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_device_id.c
src/cl_device_id.h
src/cl_gt_device.h

index 6300b41..136f3b1 100644 (file)
@@ -230,6 +230,7 @@ cl_get_device_info(cl_device_id     device,
     DECL_STRING_FIELD(PROFILE, profile)
     DECL_STRING_FIELD(OPENCL_C_VERSION, opencl_c_version)
     DECL_STRING_FIELD(EXTENSIONS, extensions);
+    DECL_STRING_FIELD(BUILT_IN_KERNELS, built_in_kernels)
 
     case CL_DRIVER_VERSION:
       if (param_value_size_ret) {
index d199ecb..0608047 100644 (file)
@@ -84,6 +84,7 @@ struct _cl_device_id {
   const char *opencl_c_version;
   const char *extensions;
   const char *driver_version;
+  const char *built_in_kernels;
   size_t name_sz;
   size_t vendor_sz;
   size_t version_sz;
@@ -91,6 +92,7 @@ struct _cl_device_id {
   size_t opencl_c_version_sz;
   size_t extensions_sz;
   size_t driver_version_sz;
+  size_t built_in_kernels_sz;
   /* Kernel specific info that we're assigning statically */
   size_t wg_sz;
   size_t compile_wg_sz[3];
index f26cd8a..a535452 100644 (file)
@@ -72,6 +72,7 @@ DECL_INFO_STRING(version, OCL_VERSION_STRING)
 DECL_INFO_STRING(profile, "FULL_PROFILE")
 DECL_INFO_STRING(opencl_c_version, "OpenCL 1.10")
 DECL_INFO_STRING(extensions, "")
+DECL_INFO_STRING(built_in_kernels, "")
 DECL_INFO_STRING(driver_version, LIBCL_VERSION_STRING)
 #undef DECL_INFO_STRING