This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
howto:pythia8 [2024/11/11 10:22] msovara created |
howto:pythia8 [2024/11/11 10:55] (current) msovara [About Pythia8] |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| module avail 2>&1 | grep -i pythia | module avail 2>&1 | grep -i pythia | ||
| module load chpc/ | module load chpc/ | ||
| + | # Run Pythia | ||
| + | ./mypythia | ||
| | | ||
| - | | + | =====Batch Script Example===== |
| + | This is just a simple example which will be improved as testing commences: | ||
| + | <file bash pythia8.qsub> | ||
| + | #!/bin/bash | ||
| + | #PBS -P projectid | ||
| + | #PBS -l select=3: | ||
| + | #PBS -q normal | ||
| + | #PBS -l walltime=01: | ||
| + | #PBS -o / | ||
| + | #PBS -e / | ||
| + | #PBS -m abe | ||
| + | #PBS -M username@email.co.za | ||
| + | ### Load the Pythia8 environment: | ||
| + | module load chpc/ | ||
| + | ##### Running commands | ||
| + | # Set this environment variable explicitly. | ||
| + | export PBS_JOBDIR=/ | ||
| + | # Explicitly change to the job directory | ||
| + | cd $PBS_JOBDIR | ||
| + | nproc=`cat $PBS_NODEFILE | wc -l` | ||
| + | exe=pythia8 | ||
| + | mpirun -np $nproc ./exe > pythia.out | ||
| + | </ | ||
| + | |||
| + | Instructions on how to create and submit a batch job will follow as collaborative testing | ||