Package solvcon :: Module batch :: Class Torque
[hide private]
[frames] | no frames]

Class Torque

source code


Torque/OpenPBS.

Nested Classes [hide private]

Inherited from Batch: __metaclass__

Instance Methods [hide private]
 
__init__(self, case, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
nodelist(self) source code
int
create_worker_torque(self, node, authkey, envar=None, paths=None, profiler_data=None)
Use Torque TM API to create worker object.
source code
 
create_worker(self, *args, **kw)
True implementations are in create_worker_*() and have identical spec.
source code

Inherited from Batch: __call__, __str__, build_mpi_runner, build_scg_command, create_worker_mpi, create_worker_ssh, tofile

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

Class Variables [hide private]

Inherited from Batch: BASH_HOME_SOURCE, DEFAULT_OUTPUT, DEFAULT_SHELL, _subcmd_

Instance Variables [hide private]

Inherited from Batch: arnname, case, jobdir, jobname, output, resource, shell, use_mpi

Properties [hide private]
  str_resource
  str_jobname
  str_output
  str_shell

Inherited from Batch: str_header, str_path, str_postrun, str_prerun, str_run

Inherited from object: __class__

Method Details [hide private]

__init__(self, case, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • rootdir - Root directory for the project/code.
  • arnname - The arrangement to be run.
Overrides: object.__init__
(inherited documentation)

nodelist(self)

source code 
Overrides: Batch.nodelist

create_worker_torque(self, node, authkey, envar=None, paths=None, profiler_data=None)

source code 

Use Torque TM API to create worker object.

Parameters:
  • node (Node) - node information.
  • authkey (str) - the authkey for the worker.
  • envar (dict) - additional environment variables to remote.
  • paths (dict) - path for remote execution.
  • profiler_data (tuple) - profiler setting for remote worker.
Returns: int
the port that the remote worker listen on.

create_worker(self, *args, **kw)

source code 

True implementations are in create_worker_*() and have identical spec.

Overrides: Batch.create_worker
(inherited documentation)

Property Details [hide private]

str_resource

Get Method:
unreachable.str_resource(self)

str_jobname

Get Method:
unreachable.str_jobname(self)

str_output

Get Method:
unreachable.str_output(self)

str_shell

Get Method:
unreachable.str_shell(self)