summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2014-06-23 22:38:36 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-06-23 14:45:03 +0800
commite2b18273008699bbc2113375800baab94d7a1bd5 (patch)
treec56cac2208221f420a216130a7b0ed172a2f0458 /src
parentf12d2278e9be5a2b3930e3ea7377a4f21dd74ef4 (diff)
Add some OpenCL1.2 parameters of function clGetDeviceInfo.
Include CL_DEVICE_LINKER_AVAILABLE, CL_DEVICE_PRINTF_BUFFER_SIZE, CL_DEVICE_PREFERRED_INTEROP_USER_SYNC. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/cl_device_id.c3
-rw-r--r--src/cl_device_id.h3
-rw-r--r--src/cl_gt_device.h3
3 files changed, 9 insertions, 0 deletions
diff --git a/src/cl_device_id.c b/src/cl_device_id.c
index f8c5c863..0263f02f 100644
--- a/src/cl_device_id.c
+++ b/src/cl_device_id.c
@@ -390,9 +390,12 @@ cl_get_device_info(cl_device_id device,
DECL_FIELD(ENDIAN_LITTLE, endian_little)
DECL_FIELD(AVAILABLE, available)
DECL_FIELD(COMPILER_AVAILABLE, compiler_available)
+ DECL_FIELD(LINKER_AVAILABLE, linker_available)
DECL_FIELD(EXECUTION_CAPABILITIES, execution_capabilities)
DECL_FIELD(QUEUE_PROPERTIES, queue_properties)
DECL_FIELD(PLATFORM, platform)
+ DECL_FIELD(PRINTF_BUFFER_SIZE, printf_buffer_size)
+ DECL_FIELD(PREFERRED_INTEROP_USER_SYNC, interop_user_sync)
DECL_STRING_FIELD(NAME, name)
DECL_STRING_FIELD(VENDOR, vendor)
DECL_STRING_FIELD(VERSION, version)
diff --git a/src/cl_device_id.h b/src/cl_device_id.h
index 5ce3cfb8..422ef37f 100644
--- a/src/cl_device_id.h
+++ b/src/cl_device_id.h
@@ -78,9 +78,12 @@ struct _cl_device_id {
cl_bool endian_little;
cl_bool available;
cl_bool compiler_available;
+ cl_bool linker_available;
cl_device_exec_capabilities execution_capabilities;
cl_command_queue_properties queue_properties;
cl_platform_id platform;
+ size_t printf_buffer_size;
+ cl_bool interop_user_sync;
const char *name;
const char *vendor;
const char *version;
diff --git a/src/cl_gt_device.h b/src/cl_gt_device.h
index f385815a..ba7d66cd 100644
--- a/src/cl_gt_device.h
+++ b/src/cl_gt_device.h
@@ -63,11 +63,14 @@
.endian_little = CL_TRUE,
.available = CL_TRUE,
.compiler_available = CL_TRUE,
+.linker_available = CL_TRUE,
.execution_capabilities = CL_EXEC_KERNEL | CL_EXEC_NATIVE_KERNEL,
.queue_properties = CL_QUEUE_PROFILING_ENABLE,
.platform = NULL, /* == intel_platform (set when requested) */
/* IEEE 754, XXX does IVB support CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT? */
.single_fp_config = CL_FP_INF_NAN | CL_FP_ROUND_TO_NEAREST , /* IEEE 754. */
+.printf_buffer_size = 1 * 1024 * 1024,
+.interop_user_sync = CL_TRUE,
#define DECL_INFO_STRING(FIELD, STRING) \
.FIELD = STRING, \