lib/opencl_ruby_ffi/Kernel.rb
def enqueue_with_args(command_queue, global_work_size, *args)
        n = self.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.last
        else
          options = {}
        end
        n.times { |i|
          if args[i].class == SVMPointer and self.context.platform.version_number >= 2.0 then
            self.set_arg_svm_pointer(i, args[i])
          else
            self.set_arg(i, args[i])
          end
        }
        command_queue.enqueue_ndrange_kernel(self, global_work_size, options)
      end
# Enqueues the Kernel in the given queue, specifying the global_work_size. Arguments for the kernel are specified afterwards. 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. 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 . Last a hash containing options for enqueu_ndrange kernel can be specified
def enqueue_with_args(command_queue, global_work_size, *args)
        n = self.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.last
        else
          options = {}
        end
        n.times { |i|
          if args[i].class == SVMPointer and self.context.platform.version_number >= 2.0 then
            self.set_arg_svm_pointer(i, args[i])
          else
            self.set_arg(i, args[i])
          end
        }
        command_queue.enqueue_ndrange_kernel(self, global_work_size, options)
      end
def enqueue_with_args ( command_queue , global_work_size , * args ) n = self . 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 . last else options = { } end n . times { | i | if args [ i ] . class == SVMPointer and self . context . platform . version_number >= 2.0 then self . set_arg_svm_pointer ( i , args [ i ] ) else self . set_arg ( i , args [ i ] ) end } 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