kernel - OpenCL build log provides no information -


my opencl kernel not being built, clbuildprogram returns -11. however, when try read build log using

//get build log size_t len; char *buffer; clstatus = clgetprogrambuildinfo(program, device_list[0], cl_program_build_log, 0, null, &len); buffer = (char *)malloc(len); clstatus = clgetprogrambuildinfo(program, device_list[0], cl_program_build_log, len, buffer, null); fprintf(stdout, "kernel build log: %s\n", query_buffer); free(buffer); 

all i'm getting output is

kernel build log: opencl 1.2 

for i've resorted copy-pasting kernel code separate c-program , compiling, trying find compile errors way, needless pretty tedious :p know what's going on?

fafner

ok, merely typo, printing correct buffer solved problem.


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -