Fixup the problem of CL_PROGRAM_BINARIES in clGetProgramInfo API
authorJunyan He <junyan.he@linux.intel.com>
Fri, 8 Nov 2013 10:41:59 +0000 (18:41 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 11 Nov 2013 05:42:52 +0000 (13:42 +0800)
commit1a69469405846c197cae04023b343e651cdb54ee
treea1552318e45ad6f477736b8e1e6e733c1cac6782
parent18c49179cd9cd92dac5007f1b9bc0542478cb3c8
Fixup the problem of CL_PROGRAM_BINARIES in clGetProgramInfo API

clGetProgramInfo using CL_PROGRAM_BINARIES to get the binary will
not be right because the binary got is not the serilization one.
Add the serilization there to fix this bug.

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/gen_program.cpp
backend/src/backend/program.cpp
backend/src/backend/program.h
src/cl_api.c