4 questions
1
vote
1
answer
39
views
Why can't I create a kernel (CL_INVALID_PROGRAM_EXECUTABLE) after successfully compiling an OpenCL program?
In the following program, I compile a kernel for the first device on the first platform:
const char* kernel_source_code = R"(
__kernel void vectorAdd(
__global float * __restrict C,
...
0
votes
0
answers
13
views
Why does OpenCL not have a clGetKernelArg function?
In OpenCL, before launching a kernel, we set its arguments using the clSetKernelArg() API function; and the cl_kernel handle must be backed by some kind of storage for the value of those arguments we ...