OmniSciDB  cde582ebc3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
heavydb.thrift.ttypes.TGpuSpecification Class Reference
+ Inheritance diagram for heavydb.thrift.ttypes.TGpuSpecification:
+ Collaboration diagram for heavydb.thrift.ttypes.TGpuSpecification:

Public Member Functions

def __init__
 
def read
 
def write
 
def validate
 
def __repr__
 
def __eq__
 
def __ne__
 

Public Attributes

 num_sm
 
 clock_frequency_kHz
 
 memory
 
 compute_capability_major
 
 compute_capability_minor
 

Private Attributes

 __dict__
 

Detailed Description

Attributes:
 - num_sm
 - clock_frequency_kHz
 - memory
 - compute_capability_major
 - compute_capability_minor

Definition at line 3023 of file ttypes.py.

Constructor & Destructor Documentation

def heavydb.thrift.ttypes.TGpuSpecification.__init__ (   self,
  num_sm = None,
  clock_frequency_kHz = None,
  memory = None,
  compute_capability_major = None,
  compute_capability_minor = None 
)

Definition at line 3035 of file ttypes.py.

3036  def __init__(self, num_sm=None, clock_frequency_kHz=None, memory=None, compute_capability_major=None, compute_capability_minor=None,):
3037  self.num_sm = num_sm
3038  self.clock_frequency_kHz = clock_frequency_kHz
3039  self.memory = memory
3040  self.compute_capability_major = compute_capability_major
3041  self.compute_capability_minor = compute_capability_minor

Member Function Documentation

def heavydb.thrift.ttypes.TGpuSpecification.__eq__ (   self,
  other 
)

Definition at line 3117 of file ttypes.py.

3118  def __eq__(self, other):
3119  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def heavydb.thrift.ttypes.TGpuSpecification.__ne__ (   self,
  other 
)

Definition at line 3120 of file ttypes.py.

3121  def __ne__(self, other):
3122  return not (self == other)
3123 
def heavydb.thrift.ttypes.TGpuSpecification.__repr__ (   self)

Definition at line 3112 of file ttypes.py.

3113  def __repr__(self):
3114  L = ['%s=%r' % (key, value)
3115  for key, value in self.__dict__.items()]
3116  return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
std::string join(T const &container, std::string const &delim)

+ Here is the call graph for this function:

def heavydb.thrift.ttypes.TGpuSpecification.read (   self,
  iprot 
)

Definition at line 3042 of file ttypes.py.

References heavydb.thrift.ttypes.TGpuSpecification.clock_frequency_kHz, heavydb.thrift.ttypes.TGpuSpecification.compute_capability_major, heavydb.thrift.ttypes.TGpuSpecification.compute_capability_minor, heavydb.thrift.ttypes.TGpuSpecification.memory, and heavydb.thrift.ttypes.TGpuSpecification.num_sm.

3043  def read(self, iprot):
3044  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3045  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3046  return
3047  iprot.readStructBegin()
3048  while True:
3049  (fname, ftype, fid) = iprot.readFieldBegin()
3050  if ftype == TType.STOP:
3051  break
3052  if fid == 1:
3053  if ftype == TType.I32:
3054  self.num_sm = iprot.readI32()
3055  else:
3056  iprot.skip(ftype)
3057  elif fid == 2:
3058  if ftype == TType.I64:
3059  self.clock_frequency_kHz = iprot.readI64()
3060  else:
3061  iprot.skip(ftype)
3062  elif fid == 3:
3063  if ftype == TType.I64:
3064  self.memory = iprot.readI64()
3065  else:
3066  iprot.skip(ftype)
3067  elif fid == 4:
3068  if ftype == TType.I16:
3069  self.compute_capability_major = iprot.readI16()
3070  else:
3071  iprot.skip(ftype)
3072  elif fid == 5:
3073  if ftype == TType.I16:
3074  self.compute_capability_minor = iprot.readI16()
3075  else:
3076  iprot.skip(ftype)
3077  else:
3078  iprot.skip(ftype)
3079  iprot.readFieldEnd()
3080  iprot.readStructEnd()
def heavydb.thrift.ttypes.TGpuSpecification.validate (   self)

Definition at line 3109 of file ttypes.py.

3110  def validate(self):
3111  return
def heavydb.thrift.ttypes.TGpuSpecification.write (   self,
  oprot 
)

Definition at line 3081 of file ttypes.py.

References heavydb.thrift.ttypes.TGpuSpecification.clock_frequency_kHz, heavydb.thrift.ttypes.TGpuSpecification.compute_capability_major, heavydb.thrift.ttypes.TGpuSpecification.compute_capability_minor, heavydb.thrift.ttypes.TGpuSpecification.memory, and heavydb.thrift.ttypes.TGpuSpecification.num_sm.

3082  def write(self, oprot):
3083  if oprot._fast_encode is not None and self.thrift_spec is not None:
3084  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3085  return
3086  oprot.writeStructBegin('TGpuSpecification')
3087  if self.num_sm is not None:
3088  oprot.writeFieldBegin('num_sm', TType.I32, 1)
3089  oprot.writeI32(self.num_sm)
3090  oprot.writeFieldEnd()
3091  if self.clock_frequency_kHz is not None:
3092  oprot.writeFieldBegin('clock_frequency_kHz', TType.I64, 2)
3093  oprot.writeI64(self.clock_frequency_kHz)
3094  oprot.writeFieldEnd()
3095  if self.memory is not None:
3096  oprot.writeFieldBegin('memory', TType.I64, 3)
3097  oprot.writeI64(self.memory)
3098  oprot.writeFieldEnd()
3099  if self.compute_capability_major is not None:
3100  oprot.writeFieldBegin('compute_capability_major', TType.I16, 4)
3101  oprot.writeI16(self.compute_capability_major)
3102  oprot.writeFieldEnd()
3103  if self.compute_capability_minor is not None:
3104  oprot.writeFieldBegin('compute_capability_minor', TType.I16, 5)
3105  oprot.writeI16(self.compute_capability_minor)
3106  oprot.writeFieldEnd()
3107  oprot.writeFieldStop()
3108  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TGpuSpecification.__dict__
private

Definition at line 3118 of file ttypes.py.

Referenced by generate_TableFunctionsFactory_init.Node.copy().

heavydb.thrift.ttypes.TGpuSpecification.clock_frequency_kHz

Definition at line 3037 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TGpuSpecification.read(), and heavydb.thrift.ttypes.TGpuSpecification.write().

heavydb.thrift.ttypes.TGpuSpecification.compute_capability_major

Definition at line 3039 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TGpuSpecification.read(), and heavydb.thrift.ttypes.TGpuSpecification.write().

heavydb.thrift.ttypes.TGpuSpecification.compute_capability_minor

Definition at line 3040 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TGpuSpecification.read(), and heavydb.thrift.ttypes.TGpuSpecification.write().

heavydb.thrift.ttypes.TGpuSpecification.memory

Definition at line 3038 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TGpuSpecification.read(), and heavydb.thrift.ttypes.TGpuSpecification.write().

heavydb.thrift.ttypes.TGpuSpecification.num_sm

Definition at line 3036 of file ttypes.py.

Referenced by heavydb.thrift.ttypes.TGpuSpecification.read(), and heavydb.thrift.ttypes.TGpuSpecification.write().


The documentation for this class was generated from the following file: