lib/opencl_ruby_ffi/ext/device_fission.rb
# Returns the parent Device if it exists
Returns the parent Device if it exists
Returns the parent Device if it exists
def parent_device_ext
        ptr = MemoryPointer::new( Device )
        error = OpenCL.clGetDeviceInfo(self, PARENT_DEVICE_EXT, Device.size, ptr, nil)
        error_check(error)
        return nil if ptr.null?
        return Device::new(ptr.read_pointer)
      end
def parent_device_ext ptr = MemoryPointer :: new ( Device ) error = OpenCL . clGetDeviceInfo ( self , PARENT_DEVICE_EXT , Device . size , ptr , nil ) error_check ( error ) return nil if ptr . null? return Device :: new ( ptr . read_pointer ) end
Returns the parent Device if it exists
Returns the parent Device if it exists