Skip to content
Snippets Groups Projects
Commit 6fe16501 authored by Jan David Mol's avatar Jan David Mol
Browse files

bug 1362: start/stopBGL now work for any specified partition

parent 601e87a7
No related branches found
No related tags found
No related merge requests found
...@@ -14,11 +14,12 @@ ...@@ -14,11 +14,12 @@
# startBGL starts specific CEP run scripts directly # startBGL starts specific CEP run scripts directly
PARSET=/opt/lofar/share/CNProc.parset PARSET=/opt/lofar/share/CNProc.parset
PARTITION=$2
sed -i 's/.*OLAP.CNProc.integrationSteps.*//' $PARSET sed -i 's/.*OLAP.CNProc.integrationSteps.*//' $PARSET
sed -i 's/.*OLAP.IONProc.integrationSteps.*//' $PARSET sed -i 's/.*OLAP.IONProc.integrationSteps.*//' $PARSET
/opt/lofar/bin/runParset.py -P R00 parset=$PARSET >>/globalhome/lofarsystem/log/run.runParset.py.log 2>&1 & /opt/lofar/bin/runParset.py -P $PARTITION parset=$PARSET >>/globalhome/lofarsystem/log/run.runParset.py.log 2>&1 &
#echo "executing /usr/local/bin/submitjob $2 $3 $4 virtual_node_mode BGLMPI_SIZE=$6 ACC $5" > startBGL.output #echo "executing /usr/local/bin/submitjob $2 $3 $4 virtual_node_mode BGLMPI_SIZE=$6 ACC $5" > startBGL.output
#/usr/local/bin/submitjob $2 $3 $4 virtual_node_mode BGLMPI_SIZE=$6 ACC $5 2>&1 | awk '{split($1, a, "="); print a[2];}' > $1.jobID #/usr/local/bin/submitjob $2 $3 $4 virtual_node_mode BGLMPI_SIZE=$6 ACC $5 2>&1 | awk '{split($1, a, "="); print a[2];}' > $1.jobID
......
...@@ -7,4 +7,8 @@ ...@@ -7,4 +7,8 @@
#echo -n "Killing job " $2 #echo -n "Killing job " $2
#killjob $1 `cat $2.jobID` #killjob $1 `cat $2.jobID`
#rm -f $2.pid $2.ps #rm -f $2.pid $2.ps
/opt/lofar/bin/commandOLAP.py -P R00 cancel $2
JOB=$2
PARTITION=$1
/opt/lofar/bin/commandOLAP.py -P $PARTITION cancel $JOB
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment