[Beignet] [PATCH 4/5] Runtime: fix one bug in clGetProgramInfo.
Zhigang Gong
zhigang.gong at intel.com
Wed Nov 6 17:55:08 PST 2013
The CL_PROGRAM_BINARIES forget to return the param value size.
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
src/cl_api.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/cl_api.c b/src/cl_api.c
index 73c5641..033e279 100644
--- a/src/cl_api.c
+++ b/src/cl_api.c
@@ -907,6 +907,8 @@ clGetProgramInfo(cl_program program,
} else if (param_name == CL_PROGRAM_BINARY_SIZES) {
FILL_GETINFO_RET (size_t, 1, (&program->bin_sz), CL_SUCCESS);
} else if (param_name == CL_PROGRAM_BINARIES) {
+ if (param_value_size_ret)
+ *param_value_size_ret = sizeof(void*);
if (!param_value)
return CL_SUCCESS;
--
1.7.9.5
More information about the Beignet
mailing list