Requirements.
RADICAL-Pilot is written in Python. Python 2.7 or greater is a requirement. RADICAL-Pilot supports Linux and Mac
Get Python Virtualenv.
Since RADICAL-Pilot is written in Python, Python Virtualenv is a requirement by RADICAL-Pilot. This how to install Python Virtualenv.
Get RADICAL-Pilot
Create a new VirtualEnv and activate it. Install RADICAL-Pilot using pip as shown in the following commands:
$ virtualenv RADICALPilot
$ source RADICALPilot/bin/activate
(RADICALPilot)$ pip install radical.pilot
RADICAL-Pilot is now installed in the Virtualenv. The latest stable RADICAL-Pilot release is 0.40.4
Run RADICAL-Pilot
Example python scripts, that use RADICAL-Pilot, can be found in the RADICAL-Pilot repository example directory. Scripts have a .py file extension. Run the following commands to launch a simple /bin/date application in local machine.
(RADICALPilot)$ cd $HOME/RADICALPilot/share/radical.pilot/examples
(RADICALPilot)$ python 00_getting_started.py
When you run this application, it should print the following output
================================================================================
Getting Started (RP version 0.42)
================================================================================
new session: [session name] \
database : [database] ok
read config ok
--------------------------------------------------------------------------------
submit pilots
create pilot manager ok
create pilot description [local.localhost:2] ok
submit 1 pilot(s) . ok
--------------------------------------------------------------------------------
submit units
create unit manager ok
add 1 pilot(s) ok
create 128 unit description(s)
........................................................................
........................................................ ok
submit 128 unit(s)
........................................................................
........................................................ ok
--------------------------------------------------------------------------------
gather results
wait for 128 unit(s)
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ok
--------------------------------------------------------------------------------
finalize
closing session [session] \
close pilot manager \
wait for 1 pilot(s) * ok
ok
close unit manager ok
session lifetime: 55.4s ok
--------------------------------------------------------------------------------