Package solvcon :: Module scuda :: Class CudaDeviceProp
[hide private]
[frames] | no frames]

Class CudaDeviceProp

source code


Instance Methods [hide private]
 
__str__(self)
str(x)
source code
 
get_compute_capability(self) source code
bool
has_compute_capability(self, *args)
Determine if the device has the compute capability specified by the arguments.
source code

Inherited from _ctypes.Structure: __init__, __new__

Inherited from unreachable._CData: __ctypes_from_outparam__, __hash__, __reduce__, __setstate__

Inherited from object: __delattr__, __format__, __getattribute__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  _fields_ = [('name', <class 'solvcon.scuda.c_char_Array_256'>)...
  ECCEnabled = <Field type=c_int, ofs=428, size=4>
  __cudaReserved = <Field type=c_int_Array_21, ofs=444, size=84>
  canMapHostMemory = <Field type=c_int, ofs=368, size=4>
  clockRate = <Field type=c_int, ofs=336, size=4>
  computeMode = <Field type=c_int, ofs=372, size=4>
  concurrentKernels = <Field type=c_int, ofs=424, size=4>
  deviceOverlap = <Field type=c_int, ofs=352, size=4>
  integrated = <Field type=c_int, ofs=364, size=4>
  kernelExecTimeoutEnabled = <Field type=c_int, ofs=360, size=4>
  major = <Field type=c_int, ofs=328, size=4>
  maxGridSize = <Field type=c_int_Array_3, ofs=304, size=12>
  maxTexture1D = <Field type=c_int, ofs=376, size=4>
  maxTexture2D = <Field type=c_int_Array_2, ofs=380, size=8>
  maxTexture2DArray = <Field type=c_int_Array_3, ofs=400, size=12>
  maxTexture3D = <Field type=c_int_Array_3, ofs=388, size=12>
  maxThreadsDim = <Field type=c_int_Array_3, ofs=292, size=12>
  maxThreadsPerBlock = <Field type=c_int, ofs=288, size=4>
  memPitch = <Field type=c_ulong, ofs=280, size=8>
  minor = <Field type=c_int, ofs=332, size=4>
  multiProcessorCount = <Field type=c_int, ofs=356, size=4>
  name = <Field type=c_char_Array_256, ofs=0, size=256>
  pciBusID = <Field type=c_int, ofs=432, size=4>
  pciDeviceID = <Field type=c_int, ofs=436, size=4>
  regsPerPerBlock = <Field type=c_int, ofs=272, size=4>
  sharedMemPerBlock = <Field type=c_ulong, ofs=264, size=8>
  surfaceAlignment = <Field type=c_ulong, ofs=416, size=8>
  tccDriver = <Field type=c_int, ofs=440, size=4>
  textureAlignment = <Field type=c_ulong, ofs=344, size=8>
  totalConstMem = <Field type=c_ulong, ofs=320, size=8>
  totalGlobalMem = <Field type=c_ulong, ofs=256, size=8>
  warpSize = <Field type=c_int, ofs=276, size=4>
Properties [hide private]

Inherited from unreachable._CData: _b_base_, _b_needsfree_

Inherited from unreachable._CData (private): _objects

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

has_compute_capability(self, *args)

source code 

Determine if the device has the compute capability specified by the arguments. Arguments can be in the format of (i) 'x.y' or (ii) x, y.

Returns: bool
has the compute capability or not.

Class Variable Details [hide private]

_fields_

Value:
[('name', <class 'solvcon.scuda.c_char_Array_256'>),
 ('totalGlobalMem', <class 'ctypes.c_ulong'>),
 ('sharedMemPerBlock', <class 'ctypes.c_ulong'>),
 ('regsPerPerBlock', <class 'ctypes.c_int'>),
 ('warpSize', <class 'ctypes.c_int'>),
 ('memPitch', <class 'ctypes.c_ulong'>),
 ('maxThreadsPerBlock', <class 'ctypes.c_int'>),
 ('maxThreadsDim', <class 'ctypes._endian.c_int_Array_3'>),
...