Difference between revisions of "Python"

From HPC users
Jump to navigationJump to search
(Created page with "Up to now there only one Python releases as module available on FLOW and HERO. The relase is available by module load testing/python With this command the corresponding I...")
 
Line 20: Line 20:
== Usage of Python adn MPI ==
== Usage of Python adn MPI ==


For parallel scripts the Python installtion contains the package mpi4py. To launch an parallel Python scripts inside an [[SGE Job Management (Queueing) System| SGE]] script please use command line
For parallel scripts the Python installtion contains the package mpi4py. To launch an parallel Python script inside an [[SGE Job Management (Queueing) System| SGE]] script please use command line


   mpirun -bootstrap sge -np $NSLOTS -env I_MPI_FABRICS shm:ofa python ''SCRIPTNAME'' ''SCRIPT_CMDLINE_OPTIONS''
   mpirun -bootstrap sge -np $NSLOTS -env I_MPI_FABRICS shm:ofa python ''SCRIPTNAME'' ''SCRIPT_CMDLINE_OPTIONS''

Revision as of 11:04, 11 June 2013

Up to now there only one Python releases as module available on FLOW and HERO. The relase is available by

 module load testing/python

With this command the corresponding Intel compilers and Intel MPI will be automatically loaded.

Note: The release will be replaced by an official release soon.


Additional installed packages

The actual release contains following additional packages:

  • numpy
  • scipy
  • nose_cov
  • distribute
  • ScientificPython
  • PyClimate

Usage of Python adn MPI

For parallel scripts the Python installtion contains the package mpi4py. To launch an parallel Python script inside an SGE script please use command line

  mpirun -bootstrap sge -np $NSLOTS -env I_MPI_FABRICS shm:ofa python SCRIPTNAME SCRIPT_CMDLINE_OPTIONS

to enable SGE to control all processes of your script.

External links