Commit cdb2e051 authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

upadte commit process for MC

parent e31ac3a3
......@@ -51,7 +51,7 @@ ndim=`awk '$1=="par"{n++}; END {print n}' $parFile`
mkdir $zeroot
cd $zeroot
echoi "output will be in $PWD"
echo "output will be in $PWD"
#MCMC stuff :TT
cov=$dirpar/covmat.dat
......@@ -104,7 +104,7 @@ cp $parbase $PWD/camel.par
./$localexec $parbase $PWD/samples\${SGE_TASK_ID}.txt
cp ar_vs_length.txt ar_$PWD/vs_length\${SGE_TASK_ID}.txt
cp ar_vs_length.txt $PWD/ar_vs_length\${SGE_TASK_ID}.txt
cp scale_vs_length.txt $PWD/scale_vs_length\${SGE_TASK_ID}.txt
cp corr.txt $PWD/corr\${SGE_TASK_ID}.txt
......@@ -116,7 +116,7 @@ echo "**************************************"
#default qsub command (you may override)
if [ -z "${QSUB_CMD}" ] ; then
QSUB_CMD="qsub -P P_$GROUP -pe multicores 8 -q mc_longlasting -R y -j y -l sps=1"
QSUB_CMD="qsub -P P_$GROUP -pe multicores $NCORES -q mc_longlasting -R y -j y -l sps=1"
fi
jobsub="${QSUB_CMD} -o $PWD -N $(basename $zeroot) -t 1-$NCHAINS zerun.sh"
......
#!/bin/env bash
NCHAINS=4
MCORE=8
NCORES=8
myexec=$CAMELROOT/$CMTCONFIG/mcmc
......@@ -33,9 +33,9 @@ fi
#cat $parFile
cd `dirname $parFile`
dirpar=$PWD
cd -
cd - > /dev/null
parbase=`basename $parFile`
zeroot=${parbase%".par"}_MC
zeroot=$CAMELROOT/batch/${parbase%".par"}_MC
if [ -d "$zeroot" ] ; then
......@@ -76,7 +76,7 @@ cat mc_setup
cat > zerun.sh <<eof
export OMP_NUM_THREADS=$MCORE
export OMP_NUM_THREADS=$NCORES
export PYTHONPATH=${PICO_CODE}
cd \$TMPDIR
......@@ -92,22 +92,29 @@ cp $parbase $PWD/camel.par
cp ar_vs_length.txt $PWD/ar_vs_length\${SGE_TASK_ID}.txt
cp scale_vs_length.txt $PWD/scale_vs_length\${SGE_TASK_ID}.txt
cp corr.txt $PWD/corr\${SGE_TA:SK_ID}.txt
cp corr.txt $PWD/corr\${SGE_TASK_ID}.txt
qstat -j \${JOB_ID} -nenv
eof
echo "**************************************"
cat zerun.sh
#default qsub command (you may override)
if [ -z "${QSUB_CMD}" ] ; then
QSUB_CMD="qsub -P P_$GROUP -pe multicores $NCORES -q mc_longlasting -R y -j y -l sps=1"
fi
jobsub="${QSUB_CMD} -o $PWD -N $(basename $zeroot) -t 1-$NCHAINS zerun.sh"
echo "about to run : $jobsub"
echo "OK? [o/n]"
read answer
if [ $answer != 'o' ] ; then
echo "exiting"
exit 1
fi
#qsub -P P_$GROUP -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_$GROUP -t 1-$NCHAINS -pe multicores $MCORE -q mc_long -l sps=1 -V -R y -j y -o $PWD -e $PWD -N $zeroot zerun.sh
#qsub -P P_$GROUP -t 1-$NCHAINS -l sps=1 -V -R y -j y -o $PWD -e $PWD -N $zeroot zerun.sh
eval $jobsub
cd -
cd - > /dev/null
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