lib/opencl_ruby_ffi/Device.rb
def built_in_kernels
        built_in_kernels_size = MemoryPointer::new( :size_t )
        error = OpenCL.clGetDeviceInfo( self, BUILT_IN_KERNELS, 0, nil, built_in_kernels_size)
        error_check(error)
        ker = MemoryPointer::new( built_in_kernels_size.read_size_t )
        error = OpenCL.clGetDeviceInfo( self, BUILT_IN_KERNELS, built_in_kernels_size.read_size_t, ker, nil)
        error_check(error)
        ker_string = ker.read_string
        return ker_string.split(";")
      end
# Returns an Array of String corresponding to the Device built in kernel names
Returns an Array of String corresponding to the Device built in kernel names
Returns an Array of String corresponding to the Device built in kernel names
def built_in_kernels
        built_in_kernels_size = MemoryPointer::new( :size_t )
        error = OpenCL.clGetDeviceInfo( self, BUILT_IN_KERNELS, 0, nil, built_in_kernels_size)
        error_check(error)
        ker = MemoryPointer::new( built_in_kernels_size.read_size_t )
        error = OpenCL.clGetDeviceInfo( self, BUILT_IN_KERNELS, built_in_kernels_size.read_size_t, ker, nil)
        error_check(error)
        ker_string = ker.read_string
        return ker_string.split(";")
      end
def built_in_kernels built_in_kernels_size = MemoryPointer :: new ( :size_t ) error = OpenCL . clGetDeviceInfo ( self , BUILT_IN_KERNELS , 0 , nil , built_in_kernels_size ) error_check ( error ) ker = MemoryPointer :: new ( built_in_kernels_size . read_size_t ) error = OpenCL . clGetDeviceInfo ( self , BUILT_IN_KERNELS , built_in_kernels_size . read_size_t , ker , nil ) error_check ( error ) ker_string = ker . read_string return ker_string . split ( ";" ) end
Returns an Array of String corresponding to the Device built in kernel names
Returns an Array of String corresponding to the Device built in kernel names