Last active
August 29, 2015 14:14
-
-
Save cenit/518419afcf74d1c15e92 to your computer and use it in GitHub Desktop.
script to run with OpenMPI @ CNAF HPC
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 | |
NUMERO_TOTALE_CORE_DA_USARE=64 | |
NOME_ESEGUIBILE="./ALaDyn" | |
stderr_file=epic.txt | |
stdout_file=opic.txt | |
job=job_test.cmd | |
job_name=ompi | |
queue=hpc_inf | |
########################### | |
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 | |
echo "#BSUB -q ${queue}" >> $job | |
echo "#BSUB -a openmpi" >> $job | |
echo "#BSUB -n ${NUMERO_TOTALE_CORE_DA_USARE}" >> $job | |
echo "module load compilers/gcc-4.8.2" >> $job | |
echo "module load compilers/openmpi-1.8.1_gcc-4.8.2" >> $job | |
echo "/usr/share/lsf/9.1/linux2.6-glibc2.3-x86_64/bin/mpirun.lsf env PSM_SHAREDCONTEXTS_MAX=8 ${NOME_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