Lines Matching refs:kernel
20 /* Simple OpenCL application that executes a kernel on the default device
22 should be specified using the CL_SOURCE define. The name of the kernel
50 cl_kernel kernel;
97 /* Read the OpenCL kernel source into the main memory. */
105 /* Build the OpenCL kernel. */
133 kernel = clCreateKernel (program, "testkernel", &err);
136 /* Setup the input data for the kernel. */
140 /* Execute the kernel (data parallel). */
141 CHK (clSetKernelArg (kernel, 0, sizeof (buffer), &buffer));
142 CHK (clEnqueueNDRangeKernel (queue, kernel, 1, NULL, global_work_size, NULL,
161 CHK (clReleaseKernel (kernel));