Hoffman2:Job Submission Templates: Difference between revisions
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
===Job submission templates=== | ===Job submission templates=== | ||
'''[[Hoffman2: | '''[[Hoffman2:Submit_job|Submit job]]''' | ||
*example script for submitting a single job | *example script for submitting a single job | ||
'''[[Hoffman2: | '''[[Hoffman2:Submit_job_(tcsh)|Submit job (tcsh)]]''' | ||
*same as above, written for tcsh | *same as above, written for tcsh | ||
'''[[Hoffman2: | '''[[Hoffman2:Submit_jobarray|Submit jobarray]]''' | ||
*example script for submitting a jobarray with hard-coded array values | *example script for submitting a jobarray with hard-coded array values | ||
'''[[Hoffman2: | '''[[Hoffman2:Submit_jobarray_(readarray)|Submit jobarray (readarray)]]''' | ||
*example script for submitting a jobarray with an array read in from a file, e.g. 'subjects.txt' | *example script for submitting a jobarray with an array read in from a file, e.g. 'subjects.txt' | ||
Revision as of 19:16, 29 November 2017
Job submission templates
- example script for submitting a single job
- same as above, written for tcsh
- example script for submitting a jobarray with hard-coded array values
- example script for submitting a jobarray with an array read in from a file, e.g. 'subjects.txt'
To work with these example scripts
- Edit the "preamble" content at the top to adjust the memory (h_data) and run time (h_rt).
- You can also adjust the number of cores: 2 cores is '-pe shared 2'. I recommend 2, 4, or 8 for this value. Be aware that the number of cores is a multiplier for the RAM. h_data=4G and 2 cores is 8G total.
- Put your script content at the bottom.
- Submit directly to the job scheduler like this:
qsub myscript.sh