source: proiecte/SolarSim/C/Parallel/submit.sh @ 152

Last change on this file since 152 was 152, checked in by (none), 14 years ago
File size: 593 bytes
Line 
1#!/bin/bash
2
3wait_qstat() {
4#astept finalizarea executiei
5        while [ `qstat | wc -l` != 0 ]
6        do
7                sleep 1
8        done
9}
10
11#compilez sursele
12for MAKEFILE in `ls makefile*`
13do
14        make -f $MAKEFILE
15done
16
17for SOLARSIM in `ls bin`
18do
19        for THREADS in 1 2 3 4 5 6 7 8
20        do
21                let "SIM_STEPS = 3075840"
22                qsub -q ibm-quad.q -cwd run.sh $THREADS bin/$SOLARSIM data/astro.dat /dev/null $SIM_STEPS 100 0
23        done
24done
25
26wait_qstat
27
28cat $PWD/run.sh.* | \
29        grep -v "Warning: no access to tty (Bad file descriptor)." | \
30        grep -v "Thus no job control in this shell."
31
32rm run.sh.*
33rm bin/*
34
Note: See TracBrowser for help on using the repository browser.