Getting started

The ElementwiseKernel (context, argument, operation, name, optional_parameters) method is implemented in PyOpenCL to handle element-wise expressions.

The main parameters are as follows:

  • context is the device or the group of devices to which the element-wise operation will be executed.
  • argument is a C-like argument list of all the parameters involved in the computation.
  • operation is a string that represents the operation to perform on the argument list.
  • name is the kernel's name that is associated with Elementwisekernel.
  • optional_parameters is not important in this recipe.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.246.254