summaryrefslogtreecommitdiff
path: root/src/cl_device_id.h
diff options
context:
space:
mode:
authorMeng Mengmeng <mengmeng.meng@intel.com>2016-12-15 14:47:31 +0800
committerYang Rong <rong.r.yang@intel.com>2016-12-30 15:46:43 +0800
commit2a6535d4b128803c4a5f89e915ff01338054d2ce (patch)
treef6bd6480d2935f8a04fa81589231068e472da533 /src/cl_device_id.h
parent75cb7ca04610a6750e73c32b9759a0742f495501 (diff)
Runtime: Use cl_ulong as CL_DEVICE_MAX_MEM_ALLOC_SIZE's return type.
Also memset the param_value to avoid garbage when param_value_size > filed sz. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Simon Richter <Simon.Richter@hogyros.de>
Diffstat (limited to 'src/cl_device_id.h')
-rw-r--r--src/cl_device_id.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_device_id.h b/src/cl_device_id.h
index aeb43a5b..9d8b5128 100644
--- a/src/cl_device_id.h
+++ b/src/cl_device_id.h
@@ -54,7 +54,7 @@ struct _cl_device_id {
cl_uint native_vector_width_half;
cl_uint max_clock_frequency;
cl_uint address_bits;
- size_t max_mem_alloc_size;
+ cl_ulong max_mem_alloc_size;
cl_device_svm_capabilities svm_capabilities;
cl_uint preferred_platform_atomic_alignment;
cl_uint preferred_global_atomic_alignment;