From 8c0f4438387425e7f3688e4286ba8861ef4fecd3 Mon Sep 17 00:00:00 2001 From: Andreas Beckmann Date: Mon, 21 Mar 2022 17:48:30 +0100 Subject: [PATCH] [PATCH 1001/1017] poclcc: use poclu_show_program_build_log() Gbp-Pq: Name 1001-poclcc-use-poclu_show_program_build_log.patch --- bin/poclcc.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/bin/poclcc.c b/bin/poclcc.c index c6de231..24aef3f 100644 --- a/bin/poclcc.c +++ b/bin/poclcc.c @@ -333,16 +333,8 @@ main(int argc, char **argv) if (err != CL_SUCCESS) { printf ("Compilation failed\n"); - char build_log[4096]; - size_t actual_size = 0; - err = clGetProgramBuildInfo (program, device_ids[opencl_device_id], - CL_PROGRAM_BUILD_LOG, 4095, build_log, - &actual_size); - if (err == CL_SUCCESS) - { - build_log[actual_size] = 0; - printf ("Error log: \n\n%s\n", build_log); - } + poclu_show_program_build_log (program); + CHECK_OPENCL_ERROR_IN ("clBuildProgram"); } size_t binary_sizes; -- 2.30.2