--- aliases: - /2013/04/ipython-parallell-setup-on-carver-at categories: - hpc - python date: 2013-04-11 05:53 layout: post slug: ipython-parallell-setup-on-carver-at title: IPython parallell setup on Carver at NERSC ---
IPython parallel is one of the easiest ways to spawn several Python sessions on a Supercomputing cluster and process jobs in parallel.
On Carver, the basic setup is running a controller on the login node, and submit engines to the computing nodes via PBS.
First create your configuration files running:
ipython profile create --parallel
Therefore in the ~/.config/ipython/profile_default/ipcluster_config.py, just need to set:
c.IPClusterStart.controller_launcher_class = 'LocalControllerLauncher'
c.IPClusterStart.engine_launcher_class = 'PBS'
c.PBSLauncher.batch_template_file = u'~/.config/ipython/profile_default/pbs.engine.template'
You also need to allow connections to the controller from other hosts, setting in ~/.config/ipython/profile_default/ipcontroller_config.py:
c.HubFactory.ip = '*'