lib/opencl_ruby_ffi/Kernel.rb
##
# returns a String containing the attributes qualifier used at kernel definition
returns a String containing the attributes qualifier used at kernel definition
returns a String containing the attributes qualifier used at kernel definition
def attributes
        @_attributes ||= begin
          attributes_size = MemoryPointer::new( :size_t )
          error = OpenCL.clGetKernelInfo( self, ATTRIBUTES, 0, nil, attributes_size)
          error_check(error)
          attr = MemoryPointer::new( attributes_size.read_size_t )
          error = OpenCL.clGetKernelInfo( self, ATTRIBUTES, attributes_size.read_size_t, attr, nil)
          error_check(error)
          attr_string = attr.read_string
          attr_string.split(" ")
        end
      end
def attributes @_attributes ||= begin attributes_size = MemoryPointer :: new ( :size_t ) error = OpenCL . clGetKernelInfo ( self , ATTRIBUTES , 0 , nil , attributes_size ) error_check ( error ) attr = MemoryPointer :: new ( attributes_size . read_size_t ) error = OpenCL . clGetKernelInfo ( self , ATTRIBUTES , attributes_size . read_size_t , attr , nil ) error_check ( error ) attr_string = attr . read_string attr_string . split ( " " ) end end
returns a String containing the attributes qualifier used at kernel definition
returns a String containing the attributes qualifier used at kernel definition