Einführung in die Rechendienste - RRZN
Einführung in die Rechendienste - RRZN
Einführung in die Rechendienste - RRZN
Erfolgreiche ePaper selbst erstellen
Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.
Beispiel-Batchskript (paralleles GAMS-Programm)<br />
GAMS-Programm auf vier (4) Prozessorkerne laufen lassen.<br />
1 #!/b<strong>in</strong>/bash -log<strong>in</strong><br />
2 #PBS -N CLSP_Optimal<br />
3 #PBS -M ich@me<strong>in</strong>e.mail.adresse<br />
4 #PBS -m ae<br />
5 #PBS -j oe<br />
6 #PBS -l nodes=1:ppn=4<br />
7 #PBS -l walltime=00:10:00<br />
8 #PBS -l mem=4gb<br />
9<br />
0 # show which computer the job ran on<br />
1 echo "Job ran on:" $(hostname)<br />
2 # load the relevant modules<br />
3 module load gams<br />
4 # change to work dir<br />
5 cd $PBS_O_WORKDIR<br />
6 # correctly specify the number of cores <strong>in</strong> cplex.opt!!<br />
7 # the program to run<br />
8 gams CLSP_Optimal.gms lo=2 lf=CLSP_Optimal.log<br />
⇐Zurück zur Batchskriptliste<br />
Compute<strong>die</strong>nste am Rechenzentrum Scientific Comput<strong>in</strong>g Gruppe | 7. November 2013 52