Skip to content

Instantly share code, notes, and snippets.

@larsvilhuber
Created March 31, 2016 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larsvilhuber/7f8085f3e1bcaef208cbaea5c57d2ef5 to your computer and use it in GitHub Desktop.
Save larsvilhuber/7f8085f3e1bcaef208cbaea5c57d2ef5 to your computer and use it in GitHub Desktop.
A R qsub script using MKL-compiled R
#!/bin/bash -l
#PBS -l ncpus=4
source /etc/profile.d/modules.sh
module load R/MKL/MP
export OMP_NUM_THREADS=4
cd $PBS_O_WORKDIR
R --vanilla < myprog.R > myprog.Rout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment