summaryrefslogtreecommitdiff
path: root/src/cl_program.c
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2014-04-17 13:11:50 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-04-17 15:05:56 +0800
commitf0cbdb12b1d57389988ae157638a083a96eeb8b0 (patch)
tree3255992452bdb2028570869c597507686a828f8d /src/cl_program.c
parent76411af89de50d07780d5f4589b8009822d720e9 (diff)
Runtime: increase the build log buffer size to 1000.
200 is too small sometimes. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: He Junyan <junyan.he@inbox.com>
Diffstat (limited to 'src/cl_program.c')
-rw-r--r--src/cl_program.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cl_program.c b/src/cl_program.c
index 10eeceed..8ae3aa79 100644
--- a/src/cl_program.c
+++ b/src/cl_program.c
@@ -109,9 +109,9 @@ cl_program_new(cl_context ctx)
p->ref_n = 1;
p->magic = CL_MAGIC_PROGRAM_HEADER;
p->ctx = ctx;
- p->build_log = calloc(200, sizeof(char));
+ p->build_log = calloc(1000, sizeof(char));
if (p->build_log)
- p->build_log_max_sz = 200;
+ p->build_log_max_sz = 1000;
/* The queue also belongs to its context */
cl_context_add_ref(ctx);