lib/opencl_ruby_ffi/Program.rb
# Returns the total amount in byte used by the Program variables in the global address space for the Device(s) specified. Returns an Array of tuple [ Device, size ] (2.0 only)
Returns the total amount in byte used by the Program variables in the global address space for the Device(s) specified. Returns an Array of tuple [ Device, size ] (2.0 only)
Returns the total amount in byte used by the Program variables in the global address space for the Device ( s ) specified . Returns an Array of tuple [ Device size ] ( 2 . 0 only )
def build_global_variable_total_size(devs = nil)
        devs = self.devices if not devs
        devs = [devs].flatten
        ptr = MemoryPointer::new( :size_t )
        return devs.collect { |dev|
          error = OpenCL.clGetProgramBuildInfo(self, dev, BUILD_GLOBAL_VARIABLE_TOTAL_SIZE, ptr.size, ptr, nil)
          error_check(error)
          [dev, ptr.read_size_t]
        }
      end
def build_global_variable_total_size ( devs = nil ) devs = self . devices if not devs devs = [ devs ] . flatten ptr = MemoryPointer :: new ( :size_t ) return devs . collect { | dev | error = OpenCL . clGetProgramBuildInfo ( self , dev , BUILD_GLOBAL_VARIABLE_TOTAL_SIZE , ptr . size , ptr , nil ) error_check ( error ) [ dev , ptr . read_size_t ] } end
Returns the total amount in byte used by the Program variables in the global address space for the Device(s) specified.
Returns the total amount in byte used by the Program variables in the global address space for the Device ( s ) specified .
devs