lib/opencl_ruby_ffi/Kernel.rb
def program
      @_program ||= begin
        ptr = MemoryPointer::new( Program )
        error = OpenCL.clGetKernelInfo(self, PROGRAM, Program.size, ptr, nil)
        error_check(error)
        Program::new(ptr.read_pointer)
      end
    end
# Returns the Program the Kernel was created from
Returns the Program the Kernel was created from
Returns the Program the Kernel was created from
def program
      @_program ||= begin
        ptr = MemoryPointer::new( Program )
        error = OpenCL.clGetKernelInfo(self, PROGRAM, Program.size, ptr, nil)
        error_check(error)
        Program::new(ptr.read_pointer)
      end
    end
def program @_program ||= begin ptr = MemoryPointer :: new ( Program ) error = OpenCL . clGetKernelInfo ( self , PROGRAM , Program . size , ptr , nil ) error_check ( error ) Program :: new ( ptr . read_pointer ) end end
Returns the Program the Kernel was created from
Returns the Program the Kernel was created from