Tutorials

From CompSemWiki
Revision as of 16:16, 29 November 2011 by Shumin (talk | contribs)
Jump to navigationJump to search
  • Follow instructions in the following page.
https://www.rc.colorado.edu/crcdocs/start
  • SSH to the research computing machine.
ssh -Y userId@login.rc.colorado.edu
  • Load Torque modules
use Torque
  • Print all nodes
pbsnodes -a
  • Node resource options
man pbs_resources
  • sample script (helloworld.sh), submit via qsub
#!/bin/bash
# Lines starting with #PBS are treated by bash as comments, but interpreted by qsub
# as arguments.  For more details about usage of these arguments see "man qsub"

#
# Name the job.

#PBS -N helloworld

#
# Set a walltime for the job. The time format is HH:MM:SS

# Run for 30 seconds:
#PBS -l walltime=0:00:30

#
# Select one node, and only 1 processors per node
#you can see what properties are available
# with the "pbsnodes -a" command which will list all nodes and their properties

#PBS -l nodes=1:ppn=1

# # Join the Output and Errors in one file. you can also set the # path for this output.
# (see "man qsub" for details.)

#PBS -j oe

#
# Source the Dotkit init so you can pull in extra software via the "reuse" command:

. /curc/tools/utils/dkinit

#
# cd to the jobs working directory, which you can set above with a #PBS # directive,
# (see "man qsub" for details)

cd /home/shumin

#
# Execute the program.

use Java

java HelloWorld > hello.txt

# This script needs to be submitted via qsub to run on the cluster.