hbp_nrp_distributed_nest.launch.host package

This package contains host specific implementations for different distributed simulation targets.

class IHostLauncher[source]

Bases: object

A generic interface to implement a host specific launcher. Guarantees necessary property and functions are accessible in inherited classes.

create_launch_scripts()[source]

Create a set of launch scripts for the CLE and individual brain processes with specific implementations required for each host. Write the launch scripts to the temporary directory for this launcher.

Returns a tuple (path to CLE launch script, path to BrainProcess launc script).

deploy()[source]

Deploy the temporary directory contents to the target host if necessary.

property host_tmpdir

Return the temporary execution directory on the host that contains all necessary configuration files. Raise an exception if the host specific implementation does not set the tmpdir value.

property hostname

Return the target host for the launcher implementation. Raise an exception if the host specific implementation does not set the hostname value.

property local_tmpdir

Return the temporary configuration directory that can be used to write configuration files. Raise an exception if the host specific implementation does not set the tmpdir value.

shutdown()[source]

Shutdown and cleanup any host specific configuration.