summaryrefslogtreecommitdiff
path: root/src/cl_device_id.h
diff options
context:
space:
mode:
authorLuo Xionghu <xionghu.luo@intel.com>2015-11-11 15:35:27 +0800
committerYang Rong <rong.r.yang@intel.com>2015-11-11 16:12:23 +0800
commit06084572d1c25bded5f01cb280ae6e2a68db1374 (patch)
tree18214a6bbb0dd5becd2fda0de1a69a009853c054 /src/cl_device_id.h
parenteee077466da631e072871178b2d5fb9e9fc54f46 (diff)
runtime: extension size not enough.
define a MACRO to hold the value. v2: use same MACRO in cl_extensions.h; add header file protection for cl_extension.h. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_device_id.h')
-rw-r--r--src/cl_device_id.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cl_device_id.h b/src/cl_device_id.h
index 4a923efa..e9717352 100644
--- a/src/cl_device_id.h
+++ b/src/cl_device_id.h
@@ -20,6 +20,9 @@
#ifndef __CL_DEVICE_ID_H__
#define __CL_DEVICE_ID_H__
+#define EXTENSTION_LENGTH 512
+
+#include "cl_khr_icd.h"
/* Store complete information about the device */
struct _cl_device_id {
DEFINE_ICD(dispatch)
@@ -95,7 +98,7 @@ struct _cl_device_id {
const char *version;
const char *profile;
const char *opencl_c_version;
- const char extensions[256];
+ const char extensions[EXTENSTION_LENGTH];
const char *driver_version;
const char *spir_versions;
const char *built_in_kernels;