The National Institute for Computational Sciences

Darter: How can I run my Python script in a batch script?


If the python script is parallelized using MPI (e.g. with mpi4py which is available on Darter), then it should be run just like any other MPI program using the following syntax in your batch script:

module load python
aprun -n numproc python parallel_script.py
If there is no MPI in the python script, use the following syntax in your batch script:
module load python
aprun python serial.py