lib/opencl_ruby_ffi/Program.rb
# Return the intermediate level representation of the program if any, nil otherwise
Return the intermediate level representation of the program if any, nil otherwise
Return the intermediate level representation of the program if any nil otherwise
def il
        il_size = MemoryPointer::new( :size_t )
        error = OpenCL.clGetProgramInfo(self, IL, 0, nil, il_size)
        error_check(error)
        return nil if il_size.read_size_t == 0
        length = il_size.read_size_t
        il_p = MemoryPointer::new( length )
        error = OpenCL.clGetProgramInfo(self, IL, length, il_p, nil)
        error_check(error)
        return il_p.read_bytes(length)
      end
def il il_size = MemoryPointer :: new ( :size_t ) error = OpenCL . clGetProgramInfo ( self , IL , 0 , nil , il_size ) error_check ( error ) return nil if il_size . read_size_t == 0 length = il_size . read_size_t il_p = MemoryPointer :: new ( length ) error = OpenCL . clGetProgramInfo ( self , IL , length , il_p , nil ) error_check ( error ) return il_p . read_bytes ( length ) end
Return the intermediate level representation of the program if any, nil otherwise
Return the intermediate level representation of the program if any nil otherwise