lib/opencl_ruby_ffi/Kernel.rb
# Enqueues the Kernel in the given queue, specifying the global_work_size. Arguments for the kernel are specified afterwards, they can be scalar or [arg, size]. Last, a hash containing options for enqueu_ndrange kernel can be specified
Enqueues the Kernel in the given queue, specifying the global_work_size. Arguments for the kernel are specified afterwards, they can be scalar or [arg, size]. Last, a hash containing options for enqueu_ndrange kernel can be specified
Enqueues the Kernel in the given queue specifying the global_work_size . Arguments for the kernel are specified afterwards they can be scalar or [ arg size ] . Last a hash containing options for enqueu_ndrange kernel can be specified
def enqueue_with_args(command_queue, global_work_size, *args)
      n = num_args
      error_check(INVALID_KERNEL_ARGS) if args.length < n
      error_check(INVALID_KERNEL_ARGS) if args.length > n + 1
      if args.length == n + 1
        options = args.pop
      else
        options = {}
      end
      set_args(*args)
      command_queue.enqueue_ndrange_kernel(self, global_work_size, options)
    end
def enqueue_with_args ( command_queue , global_work_size , * args ) n = num_args error_check ( INVALID_KERNEL_ARGS ) if args . length < n error_check ( INVALID_KERNEL_ARGS ) if args . length > n + 1 if args . length == n + 1 options = args . pop else options = { } end set_args ( * args ) command_queue . enqueue_ndrange_kernel ( self , global_work_size , options ) end
Enqueues the Kernel in the given queue, specifying the global_work_size.
Enqueues the Kernel in the given queue specifying the global_work_size .
command_queue
global_work_size
args