Commit 1f7a4f5c authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

cleaning cc scripts

parent e27a41fd
......@@ -11,7 +11,7 @@ if [ "$QUEUE" = "long" ] ; then
NCORES=1
echo "WARING you asked for $NCORES cores and long queue: putting ONE"
fi
#############################
if [ $# -ne 1 ]; then
echo "missing parFile"
......@@ -55,24 +55,27 @@ cd $zeroot
cat > zerun.sh <<eof
echo "running on : \$(uname -a)"
export CLIKDIR=$CLIKDIR
source \$CLIKDIR/bin/clik_profile.sh
export PYTHONHOME=/usr/local/python/python-2.7
export PYTHONPATH=/afs/in2p3.fr/group/planck/plaszczy/python2.7/site-packages/pypico
source /usr/local/bin/python27_env.sh
export OMP_NUM_THREADS=$NCORES
#go into the scrtach dir
cd \$TMPDIR
#local copy
cp $exec .
cp $dirpar/$parbase .
cp $parbase $PWD/
#for pico
export PYTHONPATH=${PICO_CODE}
#run
./$localexec $parbase bestfit.dat covmat.dat
#copy outouts
cp bestfit.dat $PWD/
cp covmat.dat $PWD/
#infoormations about this job
qstat -j \${JOB_ID} -nenv
eof
......@@ -85,6 +88,6 @@ if [ $answer != 'o' ] ; then
echo "exiting"
exit 1
fi
qsub -P P_cobesix -q $QUEUE -l sps=1 -V -R y -j y -o $PWD -e $PWD -N $(basename $zeroot) zerun.sh
qsub -P P_cobesix -q $QUEUE -l sps=1 -R y -j y -o $PWD -e $PWD -N $(basename $zeroot) zerun.sh
cd -
qstat -u \* -s r -ext | grep mc_ | awk '{print $5" "$19"\t"$18}'| cut -d "@" -f 1 | sort | uniq -c
echo "pending mc:"
qstat -u \* -s p -r | awk 'NF>=8{name=$4};/PE/{npe=$4};/mc_/{print name,npe}' | sort | uniq -c
qstat -g c | awk 'BEGIN{s=0};NR==1{print $0};/mc/{print $0,s+=$3}; END{print "TOTAL USED=" s}'
qquota -l sps -u \* | grep -i planck
echo "running pa:"
qstat -u \* -s r -ext | grep pa_ | awk '{print $5" "$19"\t"$18}'| cut -d "@" -f 1 | sort | uniq -c
echo "pending pa:"
qstat -u \* -s p -r | awk 'NF>=8{name=$4};/PE/{npe=$4};/pa_/{print name,npe}' | sort | uniq -c
qstat -g c | awk 'BEGIN{s=0};NR==1{print $0};/pa/{print $0,s+=$3}; END{print "TOTAL USED=" s}'
qquota -l sps -u \* | grep -i planck
......@@ -91,17 +91,14 @@ cd \$TMPDIR
uname -a
echo "NSLOTS=\$NSLOTS"
export CLIKDIR=$CLIKDIR
source \$CLIKDIR/bin/clik_profile.sh
export PYTHONHOME=/usr/local/python/python-2.7
export PYTHONPATH=/afs/in2p3.fr/group/planck/plaszczy/python2.7/site-packages/pypico
source /usr/local/bin/python27_env.sh
export OMP_NUM_THREADS=8
export PYTHONPATH=${PICO_CODE}
# copies localeS
cp $CAMELROOT/$CMTCONFIG/Minimize .
cp $CAMELROOT/batch/genrand.awk .
cp $CAMELROOT/batch/awk/genrand.awk .
#
#input file -> transforme en pico et enleve var
......@@ -137,7 +134,7 @@ cp -f covmat "$OUTDIR"/covmat\${SGE_TASK_ID}
EOBATCH
#####################################################################################################################################
qsub -P P_planck_prod -t 6-10 -pe openmpi_8 8 -q pa_long -l sps=1 -V camelrun_$zeval
qsub -P P_planck_prod -t 1-5 -pe multicores 8 -q mc_long -l sps=1 -V camelrun_$zeval
qsub -P P_planck_prod -t 6-10 -pe openmpi_8 8 -q pa_long -l sps=1 camelrun_$zeval
qsub -P P_planck_prod -t 1-5 -pe multicores 8 -q mc_long -l sps=1 camelrun_$zeval
#####################################################################################################################################
done
......@@ -85,12 +85,8 @@ cat mc_setup
cat > zerun.sh <<eof
echo "running on : \$(uname -a)"
source /usr/local/intel/icc/bin/iccvars.sh
export CLIKDIR=$CLIKDIR
source \$CLIKDIR/bin/clik_profile.sh
export PYTHONHOME=/usr/local/python/python-2.7
export PYTHONPATH=/afs/in2p3.fr/group/planck/plaszczy/python2.7/site-packages/pypico
source /usr/local/bin/python27_env.sh
export PYTHONPATH=${PICO_CODE}
export OMP_NUM_THREADS=$MCORE
cd \$TMPDIR
......@@ -121,8 +117,8 @@ echo "exiting"
exit 1
fi
#qsub -P P_planck_prod -t 1-$NCHAINS -pe openmpi_$MCORE $MCORE -q pa_long -l sps=1 -V -R y -j y -o $PWD -e $PWD -N $zeroot zerun.sh
qsub -P P_planck_prod -t 1-$NCHAINS -pe multicores $MCORE -q mc_longlasting -l sps=1 -V -R y -j y -o $PWD -e $PWD -N $zeroot zerun.sh
#qsub -P P_planck_prod -t 1-$NCHAINS -pe openmpi_$MCORE $MCORE -q pa_long -l sps=1 -R y -j y -o $PWD -e $PWD -N $zeroot zerun.sh
qsub -P P_planck_prod -t 1-$NCHAINS -pe multicores $MCORE -q mc_longlasting -l sps=1 -R y -j y -o $PWD -e $PWD -N $zeroot zerun.sh
cd -
......@@ -74,14 +74,10 @@ EOF
cat mc_setup
cat > zerun.sh <<eof
echo "running on : \$(uname -a)"
source /usr/local/intel/icc/bin/iccvars.sh
export CLIKDIR=$CLIKDIR
source \$CLIKDIR/bin/clik_profile.sh
export PYTHONHOME=/usr/local/python/python-2.7
export PYTHONPATH=/afs/in2p3.fr/group/planck/plaszczy/python2.7/site-packages/pypico
source /usr/local/bin/python27_env.sh
export OMP_NUM_THREADS=$MCORE
export PYTHONPATH=${PICO_CODE}
cd \$TMPDIR
cp $myexec .
cp $dirpar/$parbase .
......
......@@ -76,14 +76,10 @@ grep -v $var $file > parfile
#compute var
echo "fix $var cosmo $val" >> parfile
source /usr/local/intel/icc/bin/iccvars.sh
export CLIKDIR=$CLIKDIR
source \$CLIKDIR/bin/clik_profile.sh
export OMP_NUM_THREADS=NPROC
export PYTHONHOME=/usr/local/python/python-2.7
export PYTHONPATH=/afs/in2p3.fr/group/planck/plaszczy/python2.7/site-packages/pypico
source /usr/local/bin/python27_env.sh
cp parfile $OUTDIR/camel.par$val
export PYTHONPATH=${PICO_CODE}
./Minimize parfile bestfit
cp bestfit $OUTDIR/best_fit$val
qstat -j \${JOB_ID} -nenv
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment