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