Changes between Version 1 and Version 2 of jazz/drbl-torque


Ignore:
Timestamp:
Sep 10, 2009, 7:45:21 PM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/drbl-torque

    v1 v2  
    55~$ qmgr -c 'p s'
    66}}}
     7
     8 * Ubuntu 有 [http://packages.ubuntu.com/source/hardy/torque torque] 相關的 package
     9 * 跑 MPICH 工作的 pbs script - MPICH Multi-machine job
     10{{{
     11#!sh
     12# example3.pbs
     13# invoke with
     14# qsub -l nodes=2:ppn=1,pmem=1800mb,mem=1800mb,ncpus=2,cput=5:00:00 example3.pbs
     15# note that we are using one cpu per node. That :ppn=1 is critical.
     16
     17# comment these out if you wish
     18echo "qsub host is"
     19echo $PBS_O_HOST
     20echo "original queue is"
     21echo $PBS_O_QUEUE
     22echo "qsub working directory absolute is"
     23echo $PBS_O_WORKDIR
     24echo "pbs environment is"
     25echo $PBS_ENVIRONMENT
     26echo "pbs batch id"
     27echo $PBS_JOBID
     28echo "pbs job name from me is"
     29echo $PBS_JOBNAME
     30echo "Name of file containing nodes is"
     31echo $PBS_NODEFILE
     32echo "contents of nodefile is"
     33cat $PBS_NODEFILE
     34echo "Name of queue to which job went is"
     35echo $PBS_QUEUE
     36
     37# make sure we are in the right directory in case writing files
     38cd $PBS_O_WORKDIR
     39
     40# Run the mpi job
     41# Note: the MPICH mpirun command is in /usr/local/bin
     42# use the full path
     43/usr/local/bin/mpirun -np 2 -machinefile $PBS_NODEFILE ./dft_mpi
     44}}}