Difference between revisions of "Python"

From HPC users
Jump to navigationJump to search
Line 31: Line 31:
   #$ -R y
   #$ -R y


== Profiling Python programs ==
Details on how to profile entire programs, particular functions and other parts of your code can be found [[Profiling_using_gprof#Profiling_Python_programs| here]].


== External links ==
== External links ==

Revision as of 18:02, 24 September 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 and 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.

The corresponding parallel environment in the SGE submission script is specified by

 #$ -pe impi41 NUMBER_OF_CORES
 #$ -R y

Profiling Python programs

Details on how to profile entire programs, particular functions and other parts of your code can be found here.

External links