OmniSciDB  a5dc49c757
 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 3067 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 3079 of file ttypes.py.

3080  def __init__(self, num_sm=None, clock_frequency_kHz=None, memory=None, compute_capability_major=None, compute_capability_minor=None,):
3081  self.num_sm = num_sm
3082  self.clock_frequency_kHz = clock_frequency_kHz
3083  self.memory = memory
3084  self.compute_capability_major = compute_capability_major
3085  self.compute_capability_minor = compute_capability_minor

Member Function Documentation

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

Definition at line 3161 of file ttypes.py.

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

Definition at line 3164 of file ttypes.py.

3165  def __ne__(self, other):
3166  return not (self == other)
3167 
def heavydb.thrift.ttypes.TGpuSpecification.__repr__ (   self)

Definition at line 3156 of file ttypes.py.

3157  def __repr__(self):
3158  L = ['%s=%r' % (key, value)
3159  for key, value in self.__dict__.items()]
3160  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 3086 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.

3087  def read(self, iprot):
3088  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
3089  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
3090  return
3091  iprot.readStructBegin()
3092  while True:
3093  (fname, ftype, fid) = iprot.readFieldBegin()
3094  if ftype == TType.STOP:
3095  break
3096  if fid == 1:
3097  if ftype == TType.I32:
3098  self.num_sm = iprot.readI32()
3099  else:
3100  iprot.skip(ftype)
3101  elif fid == 2:
3102  if ftype == TType.I64:
3103  self.clock_frequency_kHz = iprot.readI64()
3104  else:
3105  iprot.skip(ftype)
3106  elif fid == 3:
3107  if ftype == TType.I64:
3108  self.memory = iprot.readI64()
3109  else:
3110  iprot.skip(ftype)
3111  elif fid == 4:
3112  if ftype == TType.I16:
3113  self.compute_capability_major = iprot.readI16()
3114  else:
3115  iprot.skip(ftype)
3116  elif fid == 5:
3117  if ftype == TType.I16:
3118  self.compute_capability_minor = iprot.readI16()
3119  else:
3120  iprot.skip(ftype)
3121  else:
3122  iprot.skip(ftype)
3123  iprot.readFieldEnd()
3124  iprot.readStructEnd()
def heavydb.thrift.ttypes.TGpuSpecification.validate (   self)

Definition at line 3153 of file ttypes.py.

3154  def validate(self):
3155  return
def heavydb.thrift.ttypes.TGpuSpecification.write (   self,
  oprot 
)

Definition at line 3125 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.

3126  def write(self, oprot):
3127  if oprot._fast_encode is not None and self.thrift_spec is not None:
3128  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
3129  return
3130  oprot.writeStructBegin('TGpuSpecification')
3131  if self.num_sm is not None:
3132  oprot.writeFieldBegin('num_sm', TType.I32, 1)
3133  oprot.writeI32(self.num_sm)
3134  oprot.writeFieldEnd()
3135  if self.clock_frequency_kHz is not None:
3136  oprot.writeFieldBegin('clock_frequency_kHz', TType.I64, 2)
3137  oprot.writeI64(self.clock_frequency_kHz)
3138  oprot.writeFieldEnd()
3139  if self.memory is not None:
3140  oprot.writeFieldBegin('memory', TType.I64, 3)
3141  oprot.writeI64(self.memory)
3142  oprot.writeFieldEnd()
3143  if self.compute_capability_major is not None:
3144  oprot.writeFieldBegin('compute_capability_major', TType.I16, 4)
3145  oprot.writeI16(self.compute_capability_major)
3146  oprot.writeFieldEnd()
3147  if self.compute_capability_minor is not None:
3148  oprot.writeFieldBegin('compute_capability_minor', TType.I16, 5)
3149  oprot.writeI16(self.compute_capability_minor)
3150  oprot.writeFieldEnd()
3151  oprot.writeFieldStop()
3152  oprot.writeStructEnd()

Member Data Documentation

heavydb.thrift.ttypes.TGpuSpecification.__dict__
private

Definition at line 3162 of file ttypes.py.

Referenced by TableFunctionsFactory_node.Node.copy().

heavydb.thrift.ttypes.TGpuSpecification.clock_frequency_kHz

Definition at line 3081 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 3083 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 3084 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 3082 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 3080 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: