class CrOpenCL::Program

Defined in:

crOpenCL/program.cr

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(context : Context, source : String) #

[View source]

Class Method Detail

def self.from_file(context, filename) #

[View source]

Instance Method Detail

def context : CrOpenCL::Context #

[View source]
def device #

Programs get run on a device. Just return the device of the context the program was created under


[View source]
def finalize #

[View source]
def to_unsafe : Pointer(Void) #

[View source]

Macro Detail

macro method_missing(call) #

Call args to invoke kernel: program.my_kernel queue, global_work_group_size, event, event_wait_list, kernel_args...

  • queue (CommandQueue)
  • global_work_group_size (> 0)
  • event (Event | Nil)
  • event_wait_list (Array(Event) | Nil)

[View source]