~ubuntu-branches/ubuntu/quantal/ceph/quantal

« back to all changes in this revision

Viewing changes to src/jobs/alc.tp

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2012-07-16 09:56:24 UTC
  • mfrom: (0.3.11)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: package-import@ubuntu.com-20120716095624-azr2w4hbhei1rxmx
Tags: upstream-0.48
ImportĀ upstreamĀ versionĀ 0.48

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#PSUB -s /bin/bash  # Sets your shell in batch
 
2
#PSUB -c alc       # Where to run the job
 
3
 
 
4
#PSUB -eo          # Send std error & std out to the same file
 
5
 
 
6
#PSUB -ln  $NUM       # Number of nodes to use
 
7
#PSUB -g   $NUM       # Total Number of tasks to use
 
8
#PSUB -cpn 1       # cpus per node
 
9
 
 
10
####PSUB -c 1024Mb     # memory limit
 
11
#PSUB -lc 1500        # Core file size per process
 
12
#PSUB -nr          # Do not automatically resubmit job
 
13
#PSUB -tM 20m      # Select time limit. The default time limit
 
14
                   # is only 30 minutes! Time can be HH:MM:SS or HH:MM
 
15
 
 
16
#PSUB -o $CWD/$OUT   # filename for output
 
17
 
 
18
# Put your commands here. Remember to 'cd' to the appropriate
 
19
# directory, because the job will initially be in your home directory.
 
20
# To run a parallel job, you need to use the srun.
 
21
 
 
22
 
 
23
 
 
24
echo job $PSUB_JOBID nodes $NUM name $NAME
 
25
 
 
26
# environment
 
27
cd $CWD
 
28
export LD_LIBRARY_PATH=/usr/lib/mpi/mpi_gnu/lib
 
29
 
 
30
# create fakestore dirs
 
31
srun -l -N $NUM -ppbatch bash -c "test -d tmp/osddata || mkdir tmp/osddata || echo cant make osddata  ; uptime"
 
32
 
 
33
# go
 
34
srun -l -N $NUM -ppbatch $CMD && touch $DONE
 
35
 
 
36
# clean up fakestore
 
37
srun -l -N $NUM -ppbatch bash -c 'uptime ; rm -r tmp/osddata/*'
 
38