runtime: fix build status handling.
authorZhigang Gong <zhigang.gong@intel.com>
Fri, 12 Sep 2014 06:29:23 +0000 (14:29 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Fri, 12 Sep 2014 08:08:41 +0000 (16:08 +0800)
commit44a2c4f5455980221a179c95fb7f8a4c024bcb94
treebb0acfa38294ceef551adf7519c5461a3ff3a68f
parent30e684ed12ac82c900cf985d7e5d0a4355035282
runtime: fix build status handling.

According to the spec:
The build status is to
  Returns the build, compile or link status,
  whichever was performed last on program for
  device.

The previous implementation only consider the clProgramBuild and
doesn't consider the compile. Now fix it.

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_api.c
src/cl_program.c
src/cl_program.h