runtime: fix program binary type bug.
authorZhigang Gong <zhigang.gong@intel.com>
Fri, 12 Sep 2014 05:47:25 +0000 (13:47 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 12 Sep 2014 08:08:30 +0000 (16:08 +0800)
commit30e684ed12ac82c900cf985d7e5d0a4355035282
treec55fd92fdcca0119e34ce9fc77f445966142f3fc
parent9a996d0da4351a93b3670b9cd1784d325097df58
runtime: fix program binary type bug.

If the binary is a executable type, the first byte is zero and
we need to set the binary type correctly to CL_PROGRAM_BINARY_TYPE_EXECUTABLE.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
Tested-by: "Meng, Mengmeng" <mengmeng.meng@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
src/cl_program.c