Package Biskit :: Package PVM :: Module pvmTools
[hide private]
[frames] | no frames]

Module pvmTools

source code

low-level tools for PVM

Functions [hide private]
str expandLocal(host)
Expand name of local(!) host.
  addHosts(number=len(H.nodes_all), hosts=H.nodes_all, expand=1)
Add hosts to PVM.
int countHosts()
Returns number of hosts registered with PVM

Variables [hide private]
  pvmerrors = {0: 'PvmOk Success',-2: 'PvmBadParam Bad parameter',...

Function Details [hide private]

expandLocal(host)

source code 

Expand name of local(!) host. For example, turn 'myhost' into 'myhost.mydomain.com'
Parameters:
  • host (str) - host name
Returns: str
full host name

addHosts(number=len(H.nodes_all), hosts=H.nodes_all, expand=1)

source code 

Add hosts to PVM.
Parameters:
  • number (int) - number of requested nodes if number == 0, nothing happens
  • hosts ([str]) - list of host names
  • expand ([1|0]) - add full address to local node

countHosts()

source code 
Returns: int
number of hosts registered with PVM

Variables Details [hide private]

pvmerrors

Value:
{0: 'PvmOk	     Success',-2: 'PvmBadParam     Bad parameter',-3: 'PvmM
ismatch     Parameter mismatch',-4: 'PvmOverflow     Value too large',
-5: 'PvmNoData       End of buffer',-6: 'PvmNoHost       No such host'
,-7: 'PvmNoFile       No such file',-8: 'PvmDenied       Permission de
nied',-10: 'PvmNoMem        Malloc failed',-12: "PvmBadMsg       Can't
 decode message",-14: "PvmSysErr       Can't contact local daemon",-15
: 'PvmNoBuf        No current buffer',-16: 'PvmNoSuchBuf    No such bu
ffer',-17: 'PvmNullGroup    Null group name',-18: 'PvmDupGroup     Alr
...