OmniSciDB  fe05a0c208
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
omnisci.thrift.ttypes.TGpuSpecification Class Reference
+ Inheritance diagram for omnisci.thrift.ttypes.TGpuSpecification:
+ Collaboration diagram for omnisci.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 2696 of file ttypes.py.

Constructor & Destructor Documentation

def omnisci.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 2708 of file ttypes.py.

2709  def __init__(self, num_sm=None, clock_frequency_kHz=None, memory=None, compute_capability_major=None, compute_capability_minor=None,):
2710  self.num_sm = num_sm
2711  self.clock_frequency_kHz = clock_frequency_kHz
2712  self.memory = memory
2713  self.compute_capability_major = compute_capability_major
2714  self.compute_capability_minor = compute_capability_minor

Member Function Documentation

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

Definition at line 2790 of file ttypes.py.

2791  def __eq__(self, other):
2792  return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def omnisci.thrift.ttypes.TGpuSpecification.__ne__ (   self,
  other 
)

Definition at line 2793 of file ttypes.py.

2794  def __ne__(self, other):
2795  return not (self == other)
2796 
def omnisci.thrift.ttypes.TGpuSpecification.__repr__ (   self)

Definition at line 2785 of file ttypes.py.

2786  def __repr__(self):
2787  L = ['%s=%r' % (key, value)
2788  for key, value in self.__dict__.items()]
2789  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 omnisci.thrift.ttypes.TGpuSpecification.read (   self,
  iprot 
)

Definition at line 2715 of file ttypes.py.

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

2716  def read(self, iprot):
2717  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2718  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2719  return
2720  iprot.readStructBegin()
2721  while True:
2722  (fname, ftype, fid) = iprot.readFieldBegin()
2723  if ftype == TType.STOP:
2724  break
2725  if fid == 1:
2726  if ftype == TType.I32:
2727  self.num_sm = iprot.readI32()
2728  else:
2729  iprot.skip(ftype)
2730  elif fid == 2:
2731  if ftype == TType.I64:
2732  self.clock_frequency_kHz = iprot.readI64()
2733  else:
2734  iprot.skip(ftype)
2735  elif fid == 3:
2736  if ftype == TType.I64:
2737  self.memory = iprot.readI64()
2738  else:
2739  iprot.skip(ftype)
2740  elif fid == 4:
2741  if ftype == TType.I16:
2742  self.compute_capability_major = iprot.readI16()
2743  else:
2744  iprot.skip(ftype)
2745  elif fid == 5:
2746  if ftype == TType.I16:
2747  self.compute_capability_minor = iprot.readI16()
2748  else:
2749  iprot.skip(ftype)
2750  else:
2751  iprot.skip(ftype)
2752  iprot.readFieldEnd()
2753  iprot.readStructEnd()
def omnisci.thrift.ttypes.TGpuSpecification.validate (   self)

Definition at line 2782 of file ttypes.py.

2783  def validate(self):
2784  return
def omnisci.thrift.ttypes.TGpuSpecification.write (   self,
  oprot 
)

Definition at line 2754 of file ttypes.py.

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

2755  def write(self, oprot):
2756  if oprot._fast_encode is not None and self.thrift_spec is not None:
2757  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2758  return
2759  oprot.writeStructBegin('TGpuSpecification')
2760  if self.num_sm is not None:
2761  oprot.writeFieldBegin('num_sm', TType.I32, 1)
2762  oprot.writeI32(self.num_sm)
2763  oprot.writeFieldEnd()
2764  if self.clock_frequency_kHz is not None:
2765  oprot.writeFieldBegin('clock_frequency_kHz', TType.I64, 2)
2766  oprot.writeI64(self.clock_frequency_kHz)
2767  oprot.writeFieldEnd()
2768  if self.memory is not None:
2769  oprot.writeFieldBegin('memory', TType.I64, 3)
2770  oprot.writeI64(self.memory)
2771  oprot.writeFieldEnd()
2772  if self.compute_capability_major is not None:
2773  oprot.writeFieldBegin('compute_capability_major', TType.I16, 4)
2774  oprot.writeI16(self.compute_capability_major)
2775  oprot.writeFieldEnd()
2776  if self.compute_capability_minor is not None:
2777  oprot.writeFieldBegin('compute_capability_minor', TType.I16, 5)
2778  oprot.writeI16(self.compute_capability_minor)
2779  oprot.writeFieldEnd()
2780  oprot.writeFieldStop()
2781  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TGpuSpecification.__dict__
private

Definition at line 2791 of file ttypes.py.

omnisci.thrift.ttypes.TGpuSpecification.clock_frequency_kHz

Definition at line 2710 of file ttypes.py.

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

omnisci.thrift.ttypes.TGpuSpecification.compute_capability_major

Definition at line 2712 of file ttypes.py.

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

omnisci.thrift.ttypes.TGpuSpecification.compute_capability_minor

Definition at line 2713 of file ttypes.py.

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

omnisci.thrift.ttypes.TGpuSpecification.memory

Definition at line 2711 of file ttypes.py.

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

omnisci.thrift.ttypes.TGpuSpecification.num_sm

Definition at line 2709 of file ttypes.py.

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


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