Last active
August 29, 2015 14:18
-
-
Save cenit/555d51d70e793ab269d0 to your computer and use it in GitHub Desktop.
script to run serial @ CNAF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH_ESEGUIBILE="./ALaDyn" | |
stderr_file=stderr.txt | |
stdout_file=stdout.txt | |
job=job_serial.cmd | |
job_name=S01 | |
queue=hpc_test | |
use_whole_node=true | |
use_only_128gb_nodes=true | |
############################# | |
# NON TOCCARE DA QUI IN POI # | |
############################# | |
rm -f $job | |
touch $job | |
chmod 755 $job | |
touch ${stderr_file} | |
touch ${stdout_file} | |
echo "#!/bin/sh" > $job | |
echo "#BSUB -J ${job_name}" >> $job # Job name | |
echo "#BSUB -o %J.out" >> $job # Job standard output | |
echo "#BSUB -e %J.err" >> $job # Job standard error | |
if [ "$use_only_128gb_nodes" = true ] ; then | |
echo "#BSUB -m 'hpc-200-06-05 hpc-200-06-06 hpc-200-06-07 hpc-200-06-08 hpc-200-06-20'" >> $job # Used machine | |
fi | |
echo "#BSUB -q ${queue}" >> $job | |
if [ "$use_whole_node" = true ] ; then | |
echo "#BSUB -n 32" >> $job | |
echo "#BSUB -R \"span[ptile=32]\"" >> $job | |
fi | |
echo "module load compilers/gcc-4.9.2" >> $job | |
echo "${PATH_ESEGUIBILE} >> ${stdout_file} 2>> ${stderr_file}" >> $job | |
echo "Lanciare il job con il seguente comando: " | |
echo "bsub < $job" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment