Commit 7ea6888d authored by Plaszczynski Stephane's avatar Plaszczynski Stephane
Browse files

cleaning cc batch scripts

parent 222fae09
......@@ -73,18 +73,18 @@ cd $OUTDIR
###################################################
cat > camelrun <<EOBATCH
#!/bin/bash
echo "==> GROUP=$GROUP"
fs sysname
#
cd \$TMPDIR
ulimit -S -c unlimited # for coredumps
uname -a
echo "NSLOTS=\$NSLOTS"
source /sps/lsst/Library/CMT/v1r26/mgr/setup.sh
#mes compilos
source /usr/local/shared/bin/gcc_env.sh 5.2.0
echo "CMTCONFIG=$CMTCONFIG"
COMPILERVARS_ARCHITECTURE=intel64
COMPILERVARS_PLATFORM=linux
source /usr/local/intel/icc/bin/iccvars.sh
......@@ -126,12 +126,11 @@ export OMP_NUM_THREADS=$NCORES
cp -f bestfit $OUTDIR/best_fit\${SGE_TASK_ID}
cp -f covmat $OUTDIR/covmat\${SGE_TASK_ID}.dat
cp -f core* $OUTDIR/core_\${SGE_TASK_ID}
EOBATCH
##############################################################################################
if [ -z "${QSUB_CMD}" ] ; then
QSUB_CMD="qsub -P P_$GROUP -pe multicores $NCORES -q mc_long -R y -j y -l sps=1,os=\"sl6|cl7\""
QSUB_CMD="qsub -P P_$GROUP -pe multicores $NCORES -q mc_long -R y -j y -l sps=1"
fi
jobsub="${QSUB_CMD} -o $PWD -N $(basename $dirout) -t $range camelrun"
......
......@@ -9,11 +9,6 @@ echo "usage: parFile covmat.dat nsamples"
exit
fi
if [ -z "$CLIKDIR" ] ; then
echo "miss CLIKDIR"
exit
fi
if ! [ -f $myexec ] ; then
echo "missing exec"
exit
......@@ -67,25 +62,8 @@ fi
cat > mc_setup <<EOF
do_mPk=true
class z_max_pk 1.
derived H0
#derived theta
derived sigma8
derived f(0.38)
derived sigma8(0.38)
derived f(0.51)
derived sigma8(0.51)
derived f(0.61)
derived sigma8(0.61)
algo=ada
length=$NSAMPLES
proposal_cov=$cov
bunchSize=1000
t0=2000
ts=10000
scale=0.001
do_move=false
EOF
echo "**************************************"
......@@ -93,15 +71,31 @@ cat mc_setup
echo "**************************************"
cat > zerun.sh <<eof
echo "running on : \$(uname -a)"
export PYTHONPATH=${PICO_CODE}
export OMP_NUM_THREADS=$NCORES
echo "running on : \$(uname -a)"
echo "==> GROUP=$GROUP"
fs sysname
#
source /sps/lsst/Library/CMT/v1r26/mgr/setup.sh
#mes compilos
source /usr/local/shared/bin/gcc_env.sh 5.2.0
echo "CMTCONFIG=$CMTCONFIG"
COMPILERVARS_ARCHITECTURE=intel64
COMPILERVARS_PLATFORM=linux
source /usr/local/intel/icc/bin/iccvars.sh
gcc --version | grep gcc
icc --version | grep icc
cd \$TMPDIR
cp $myexec .
#enleve precision/mPk
grep -v precision $parFile | grep -v do_mPk | grep -v z_max_pk > $parbase
#enleve precision
grep -v precision $parFile > $parbase
cat $PWD/mc_setup >> $parbase
#each job from the array will have different seeds but is repoductible.
......
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