add check for memory allocation size
authorLu Guanqun <guanqun.lu@intel.com>
Thu, 10 Jan 2013 01:19:09 +0000 (09:19 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 10 Apr 2013 06:51:31 +0000 (14:51 +0800)
commitbf493ee1b0c9466624368d07760f5194e6f50ab6
tree3b160b953ee837d831676961f219f99a967e3557
parentf43a42815477ce158073de1f8459ecc199239f17
add check for memory allocation size

When it exceeds the max allocation size, it should fail and return
CL_INVALID_BUFFER_SIZE.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
src/cl_mem.c
utests/CMakeLists.txt
utests/cl_create_kernel.cpp [new file with mode: 0644]