OmniSciDB  340b00dbf6
 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 2816 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 2828 of file ttypes.py.

2829  def __init__(self, num_sm=None, clock_frequency_kHz=None, memory=None, compute_capability_major=None, compute_capability_minor=None,):
2830  self.num_sm = num_sm
2831  self.clock_frequency_kHz = clock_frequency_kHz
2832  self.memory = memory
2833  self.compute_capability_major = compute_capability_major
2834  self.compute_capability_minor = compute_capability_minor

Member Function Documentation

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

Definition at line 2910 of file ttypes.py.

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

Definition at line 2913 of file ttypes.py.

2914  def __ne__(self, other):
2915  return not (self == other)
2916 
def omnisci.thrift.ttypes.TGpuSpecification.__repr__ (   self)

Definition at line 2905 of file ttypes.py.

2906  def __repr__(self):
2907  L = ['%s=%r' % (key, value)
2908  for key, value in self.__dict__.items()]
2909  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 2835 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.

2836  def read(self, iprot):
2837  if iprot._fast_decode is not None and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None:
2838  iprot._fast_decode(self, iprot, [self.__class__, self.thrift_spec])
2839  return
2840  iprot.readStructBegin()
2841  while True:
2842  (fname, ftype, fid) = iprot.readFieldBegin()
2843  if ftype == TType.STOP:
2844  break
2845  if fid == 1:
2846  if ftype == TType.I32:
2847  self.num_sm = iprot.readI32()
2848  else:
2849  iprot.skip(ftype)
2850  elif fid == 2:
2851  if ftype == TType.I64:
2852  self.clock_frequency_kHz = iprot.readI64()
2853  else:
2854  iprot.skip(ftype)
2855  elif fid == 3:
2856  if ftype == TType.I64:
2857  self.memory = iprot.readI64()
2858  else:
2859  iprot.skip(ftype)
2860  elif fid == 4:
2861  if ftype == TType.I16:
2862  self.compute_capability_major = iprot.readI16()
2863  else:
2864  iprot.skip(ftype)
2865  elif fid == 5:
2866  if ftype == TType.I16:
2867  self.compute_capability_minor = iprot.readI16()
2868  else:
2869  iprot.skip(ftype)
2870  else:
2871  iprot.skip(ftype)
2872  iprot.readFieldEnd()
2873  iprot.readStructEnd()
def omnisci.thrift.ttypes.TGpuSpecification.validate (   self)

Definition at line 2902 of file ttypes.py.

2903  def validate(self):
2904  return
def omnisci.thrift.ttypes.TGpuSpecification.write (   self,
  oprot 
)

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

2875  def write(self, oprot):
2876  if oprot._fast_encode is not None and self.thrift_spec is not None:
2877  oprot.trans.write(oprot._fast_encode(self, [self.__class__, self.thrift_spec]))
2878  return
2879  oprot.writeStructBegin('TGpuSpecification')
2880  if self.num_sm is not None:
2881  oprot.writeFieldBegin('num_sm', TType.I32, 1)
2882  oprot.writeI32(self.num_sm)
2883  oprot.writeFieldEnd()
2884  if self.clock_frequency_kHz is not None:
2885  oprot.writeFieldBegin('clock_frequency_kHz', TType.I64, 2)
2886  oprot.writeI64(self.clock_frequency_kHz)
2887  oprot.writeFieldEnd()
2888  if self.memory is not None:
2889  oprot.writeFieldBegin('memory', TType.I64, 3)
2890  oprot.writeI64(self.memory)
2891  oprot.writeFieldEnd()
2892  if self.compute_capability_major is not None:
2893  oprot.writeFieldBegin('compute_capability_major', TType.I16, 4)
2894  oprot.writeI16(self.compute_capability_major)
2895  oprot.writeFieldEnd()
2896  if self.compute_capability_minor is not None:
2897  oprot.writeFieldBegin('compute_capability_minor', TType.I16, 5)
2898  oprot.writeI16(self.compute_capability_minor)
2899  oprot.writeFieldEnd()
2900  oprot.writeFieldStop()
2901  oprot.writeStructEnd()

Member Data Documentation

omnisci.thrift.ttypes.TGpuSpecification.__dict__
private

Definition at line 2911 of file ttypes.py.

omnisci.thrift.ttypes.TGpuSpecification.clock_frequency_kHz

Definition at line 2830 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 2832 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 2833 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 2831 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 2829 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: