Skip to content

Instantly share code, notes, and snippets.

@cenit
Created March 30, 2015 14:25
Show Gist options
  • Save cenit/6c9da3afd8a4fe4b65b4 to your computer and use it in GitHub Desktop.
Save cenit/6c9da3afd8a4fe4b65b4 to your computer and use it in GitHub Desktop.
script to run with IntelMPI and ICC @ CNAF
#!/bin/bash
NUMERO_TOTALE_CORE_DA_USARE=64
NOME_ESEGUIBILE="./ALaDyn"
stderr_file=epic.txt
stdout_file=opic.txt
job=job_test_ifort.cmd
job_name=impi
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 -n ${NUMERO_TOTALE_CORE_DA_USARE}" >> $job
echo "module load compilers/ips-xe-2013-sp1" >> $job
echo "module load compilers/intel-mpi" >> $job
echo "/shared/software/compilers/impi/intel64/bin/mpirun -np ${NUMERO_TOTALE_CORE_DA_USARE} -genv PSM_SHAREDCONTEXTS_MAX 8 -genv I_MPI_FABRICS shm:tmi ${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