Sunday, May 18, 2003

Demo Serial jobs in PBS

This technical note may only apply on OSCAR software

This shows how you submit non-MPI jobs using OpenPBS under our cluster (OSCAR System).

1. Download this file from my weblog. Save it to nompihello.c or hello.c

2. Run this:

$ gcc hello.c -o hello
3. Modify the following pbs script, save it as, say, hello.pbs. Please modify the variables "N" and change the current path.
#PBS -N "Test"
#PBS -l nodes=1:ppn=1
#PBS -q workq
#PBS -S /bin/sh

# Edit this line to reflect your directory.
cd /home/mjhsieh

./hello >& log-hello
4. Run this:
$ qsub hello.pbs

No comments: