#!/bin/csh # # Sample Batch Script for a p=4 Platinum cluster job # without Unitree and msscmd # # Submit this script using the command: qsub cpgm4.job # # Use the "qstat" command to check the status of a job. # # The following are embedded QSUB options. The syntax is #PBS (the # does # _not_ denote that the lines are commented out so do not remove). # # resource limits walltime: maximum wall clock time (hh:mm:ss) # nodes: number of 2-processor nodes # ppn: how many processors per node to use (1 or 2) # (you are always charged for the entire node) # prod: resource = production Platinum cluster nodes #PBS -l walltime=00:30:00,nodes=2:ppn=2:prod # # queue name #PBS -q standard # # export all my environment variables to the job #PBS -V # # Charge job to project MCS572 nfa #PBS -A nfa # # job name (default = name of script file) #PBS -N cpgm4 # # filename for standard output (default = .o) #PBS -o cpgm4.out # # filename for standard error (default = .e) #PBS -e cpgm4.err # # send mail when the job begins and ends (optional: remove "# " below to use) # #PBS -m be # End of embedded QSUB options #set echo # echo commands before execution; use for debugging # Create the scratch directory for the job and cd to it setenv SCR `set_SCR` if ($SCR != "") cd $SCR cp ${HOME}/cdata . cp ${HOME}/cpgm4 . # Run the MPI program on all nodes/processors requested by the job # (program reads from cdata and writes to file cpgm4.output) vmirun "cpgm4 < cdata >& cpgm4.output" # Copy output to Home directory: cp cpgm4.output ${HOME}