
18 Cray T3E User’s Guide
environment. After this, the commands in the script are executed using
/bin/sh. This can be overridden using the option -s shell_name.
Here follows an example script, which is written into a file called t3e.job.
The request name is set to simulation. The job file reserves at max-
imum six processors (option -l mpp_p=6), and the approximate maxi-
mum wall clock time is 600 seconds (-l mpp_t=600). Standard error is
concatenated with the standard output (option -eo).
#QSUB -r simulation
#QSUB -l mpp_p=6
#QSUB -l mpp_t=600
#QSUB -eo
#QSUB
cd $TMPDIR
cp $HOME/data/inputfile .
cp $HOME/src/a.out .
mpprun -n $NPES a.out
First, the script changes the current directory to the temporary direc-
tory. Thereafter, the input file inputfile and the executable program
a.out are copied there. Finally, the mpprun command triggers the actual
parallel execution.
If the time limit of 600 seconds is reached, the job will be terminated.
The environment variable $NPES indicates the number of processors
actually allocated for the job. This is a local feature of the T3E at CSC.
To submit the previous job file to the prime queue, use the command
t3e% qsub -q prime t3e.job
You can use the command qstat for checking out the status of your
batch job. You get a listing of the current processes with the commands
top and ps -PeMf. Use the command qdel to delete a batch job from
the queue. See Chapter 8 for more details.
2.6 More information
There are normal Unix-style man pages available on the Cray T3E. In
addition to this, CSC’s help system is available on the Cray T3E. For
example, you can look up how to use the IMSL libraries:
help imsl
The guide Metakoneen käyttöopas (Metacomputer Guide) [Lou97]de-
scribes (in Finnish) the CSC environment in detail. See also the Web
address
http://www.csc.fi/metacomputer/english/crayt3e.html
Comentários a estes Manuais