diff options
author | Yang Rong <rong.r.yang@intel.com> | 2014-06-21 00:15:44 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-20 17:35:03 +0800 |
commit | a1f9bd02b1cc41fdded1a13c9077ba7d4971d9e6 (patch) | |
tree | f0c6c0da9ac0640021e51ab24f5891db9bd251ea /utests/get_cl_info.cpp | |
parent | 02cba1c31588ecc6c7e8b78b9a06417215d8011f (diff) | |
download | beignet-a1f9bd02b1cc41fdded1a13c9077ba7d4971d9e6.tar.gz |
Add some API's OpenCL 1.2 parameter support.
Support CL_PROGRAM_KERNEL_NAMES and CL_PROGRAM_NUM_KERNELS in API clGetProgramInfo,
and CL_DOUBLE_FP_CONFIG in API clGetDeviceInfo.
Also fix a bug of CL_MEM_HOST_PTR in API clGetMemObjectInfo.
v2:
also fix the utest get_mem_info.
Signed-off-by: Yang Rong <rong.r.yang@intel.com>
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/get_cl_info.cpp')
-rw-r--r-- | utests/get_cl_info.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/get_cl_info.cpp b/utests/get_cl_info.cpp index b2c1686e..807739b0 100644 --- a/utests/get_cl_info.cpp +++ b/utests/get_cl_info.cpp @@ -583,7 +583,7 @@ void get_mem_info(void) expect_ref = 2048; maps.insert(make_pair(CL_MEM_SIZE, (void *)(new Info_Result<size_t>(((size_t)expect_ref))))); - expect_ref = 0; + expect_ref = 1024; maps.insert(make_pair(CL_MEM_HOST_PTR, (void *)(new Info_Result<size_t>(((size_t)expect_ref))))); expect_ref = 1; |