Extension of jobcontrol.Host class with GPUs.
|
|
__eq__(self,
other)
Allows equality comparisons between two different host objects that
represent the same host. |
|
|
|
|
__init__(self,
name,
processors=0,
num_gpus=0,
gpulist=None)
Create a named Host object. |
|
|
|
|
__repr__(self)
Return the formal string representation of the Host. |
|
|
|
|
__str__(self)
Return the informal string representation of the Host -- a
comma-separated list of "Key: value" attribute pairs. |
|
|
|
|
|
|
|
hostType(self)
Used to determine what type of host this is. |
|
|
|
|
label(self)
Returns the string to show in controls, etc. |
|
|
|
|
maxNum(self)
Returns the number of processors for the type of host - for GPU host,
return the number of GPUs, for non-GPU hosts, return the number of
CPUs. |
|
|
|
|
| setGpuList(self,
gpulist) |
|
|
|
|
units(self)
Return the unit string for the type of processors provided by this
host. |
|
|
|
Inherited from job.jobcontrol.Host:
getHost,
isQueue,
setHost,
to_hostentry
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|