From: Yang Rong Date: Mon, 23 Jun 2014 14:38:36 +0000 (+0800) Subject: Add some OpenCL1.2 parameters of function clGetDeviceInfo. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2b18273008699bbc2113375800baab94d7a1bd5;p=contrib%2Fbeignet.git 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 Reviewed-by: Zhigang Gong --- diff --git a/src/cl_device_id.c b/src/cl_device_id.c index f8c5c86..0263f02 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 5ce3cfb..422ef37 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 f385815..ba7d66c 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, \