concept argument in category opencl

appears as: n argument, rguments, argument, arguments, The arguments, The argument
OpenCL in Action: How to Accelerate Graphics and Computation

This is an excerpt from Manning's book OpenCL in Action: How to Accelerate Graphics and Computation.

Both clCreateContext and clCreateContextFromType accept a callback function as an argument. This function is invoked whenever an error occurs during the context’s operation.

The first way is to invoke the execute method. The argument of execute is an integer that identifies how many work-items will be generated. For example, in listing 9.1, the argument of execute is 1, which means the kernel will be executed by a single work-item.

9.3.4. Setting arguments and executing kernels

After you’ve created a Kernel object for a function, the next step is to add arguments so that the function has data to process. PyOpenCL provides two ways to set arguments for a kernel. First, you can call setArg, whose signature is as follows:

setArg(self, index, arg)

Second, you can set arguments for a Kernel as you create it using the attribute lookup process we looked at earlier. Suppose you want to set a, b, and c as arguments of a kernel function called foo. In that case, you can create the Kernel and specify its three arguments with the following line of code: