PDA

View Full Version : Using binary



luizdrumond
09-29-2012, 08:22 AM
Hi,

At first it seems that i caught the binary and put in a file, and after load in a buffer.

When i loaded and made the program object with the binary with clCreateProgramWithBinary no error occurs, but in clCreateKernel(program,"sivia",&erro_create_kernel);

CL_INVALID_KERNEL occurs.

Very Thanks for help

luizdrumond
10-01-2012, 08:19 AM
No one knows?

Photovore
10-01-2012, 01:06 PM
You do have a clBuildProgram after your clCreateProgramWithBinary, right? You still need to call that before clCreateKernel even when you're starting with a binary....

edit: never mind, it seems from your other thread that you are calling it.

luizdrumond
10-01-2012, 01:38 PM
But, my code is as, first i call clCreateWithBinary, after clBuildProgram and after ClCreateKernel.

Is that?

Thanks,