Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
46 views

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, ...
einpoklum's user avatar
  • 137k
1 vote
0 answers
50 views

I'm looking at the OpenCL specification for clGetKernelWorkGroupInfo(), and am noticing that the returned types for CL_KERNEL_GLOBAL_WORK_SIZE and CL_KERNEL_COMPILE_WORK_GROUP_SIZE are both size_t[3]. ...
einpoklum's user avatar
  • 137k
0 votes
0 answers
17 views

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 ...
einpoklum's user avatar
  • 137k
2 votes
1 answer
64 views

In CUDA, launching a kernel means specifying its arguments, marshaled via an array of pointers: CUresult cuLaunchKernel ( CUfunction f, /* launch config stuff */, void** kernelParams, ...
einpoklum's user avatar
  • 137k