lib/opencl_ruby_ffi/Program.rb
# Returns the BinaryType for each Device associated to the Program or the Device(s) specified. Returns an Array of tuple [ Device, BinaryType ]
Returns the BinaryType for each Device associated to the Program or the Device(s) specified. Returns an Array of tuple [ Device, BinaryType ]
Returns the BinaryType for each Device associated to the Program or the Device ( s ) specified . Returns an Array of tuple [ Device BinaryType ]
def binary_type(devs = nil)
        devs = self.devices if not devs
        devs = [devs].flatten
        ptr = MemoryPointer::new( :cl_program_binary_type )
        return devs.collect { |dev|
          error = OpenCL.clGetProgramBuildInfo(self, dev, BINARY_TYPE, ptr.size, ptr, nil)
          error_check(error)
          [dev, BinaryType::new(ptr.read_cl_program_binary_type)]
        }
      end
def binary_type ( devs = nil ) devs = self . devices if not devs devs = [ devs ] . flatten ptr = MemoryPointer :: new ( :cl_program_binary_type ) return devs . collect { | dev | error = OpenCL . clGetProgramBuildInfo ( self , dev , BINARY_TYPE , ptr . size , ptr , nil ) error_check ( error ) [ dev , BinaryType :: new ( ptr . read_cl_program_binary_type ) ] } end
Returns the BinaryType for each Device associated to the Program or the Device(s) specified.
Returns the BinaryType for each Device associated to the Program or the Device ( s ) specified .
devs