diff options
author | Meng Mengmeng <mengmeng.meng@intel.com> | 2016-12-15 14:47:31 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-12-30 15:46:43 +0800 |
commit | 2a6535d4b128803c4a5f89e915ff01338054d2ce (patch) | |
tree | f6bd6480d2935f8a04fa81589231068e472da533 /src/cl_api_mem.c | |
parent | 75cb7ca04610a6750e73c32b9759a0742f495501 (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_api_mem.c')
-rw-r--r-- | src/cl_api_mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_api_mem.c b/src/cl_api_mem.c index a9422c20..0d19bf87 100644 --- a/src/cl_api_mem.c +++ b/src/cl_api_mem.c @@ -84,6 +84,7 @@ clGetMemObjectInfo(cl_mem memobj, case CL_MEM_USES_SVM_POINTER: { src_ptr = &memobj->is_svm; src_size = sizeof(memobj->is_svm); + break; } case CL_MEM_MAP_COUNT: src_ptr = &memobj->map_ref; |