~ubuntu-branches/ubuntu/vivid/adios/vivid-proposed

« back to all changes in this revision

Viewing changes to examples/staging/stage_write/job

  • Committer: Package Import Robot
  • Author(s): Alastair McKinstry
  • Date: 2014-06-16 23:06:38 UTC
  • mfrom: (15.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20140616230638-cxryhot6b8ge32l6
Tags: 1.7.0-1
* New upstream release.
* Add adios.pc pkgconfig file. adios_config now uses this.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#PBS -l walltime=0:10:00,nodes=3
7
7
## On the Cray, you need at least 3 nodes for 3 separate application runs
8
8
 
9
 
cd $PBS_O_WORKDIR
10
 
 
11
 
#RUNCMD="mpirun -np"
12
 
RUNCMD="aprun -n"
13
 
SERVER=./dataspaces_server
 
9
#cd $PBS_O_WORKDIR
 
10
 
 
11
if [ `hostname | cut -c 1-4` == "sith" ]; then
 
12
    source /etc/profile.d/modules.sh
 
13
    module load szip
 
14
    #module load dataspaces/1.3.0
 
15
    DATASPACES_DIR=/ccs/proj/e2e/dataspaces/sith/pgi
 
16
fi
 
17
 
 
18
RUNCMD="mpirun -np"
 
19
#RUNCMD="aprun -n"
 
20
SERVER=$DATASPACES_DIR/bin/dataspaces_server
14
21
 
15
22
WRITEPROC=1
16
23
STAGINGPROC=1
24
31
# Prepare config file for DataSpaces
25
32
echo "## Config file for DataSpaces
26
33
ndim = 3
27
 
dimx = 128
28
 
dimy = 32768
29
 
dimz = 128
 
34
dims = 16,32,64
30
35
max_versions = 10
31
36
#max_readers =" $READPROC " 
32
37
#lock_type = 2
51
56
 
52
57
echo "-- DataSpaces IDs: P2TNID = $P2TNID   P2TPID = $P2TPID"
53
58
 
 
59
# Start STAGE_WRITE
 
60
echo "-- Start STAGE_WRITE on $READPROC PEs"
 
61
$RUNCMD $READPROC ./stage_write genarray.bp staged.bp DATASPACES "" MPI "" $READPROC 1 1 >& log.stage_write &
 
62
 
54
63
# Start GENARRAY
55
64
echo "-- Start GENARRAY on $WRITEPROC PEs"
56
 
$RUNCMD $WRITEPROC ./genarray_stream genarray.bp $WRITEPROC 1 1 16 32 64 5 10 >& log.genarray &
57
 
 
58
 
# Start STAGE_WRITE
59
 
echo "-- Start STAGE_WRITE on $READPROC PEs"
60
 
$RUNCMD $READPROC ./stage_write genarray.bp staged.bp DATASPACES \"\" MPI \"\" $READPROC 1 1 >& log.stage_write &
61
 
 
62
 
echo "-- Wait until all applications exit. Run ./check.sh to see status"
 
65
$RUNCMD $WRITEPROC ./genarray_stream genarray.bp $WRITEPROC 1 1 16 32 64 5 10 >& log.genarray
 
66
 
 
67
#echo "-- Wait until all applications exit. Run ./check.sh to see status"
63
68
wait
64
69
rm -f conf
65
70