| 1 | I've often found that when I'm running on Obelix, I want to change the default queue used by libIGCM. For example, if I'm running short test jobs, or larger parallel runs, I don't want to be submitting to the queue 'medium'. There is a very simple way to do this on libIGCM 2.1.1. |
| 2 | |
| 3 | The file libIGCM/AA_job is the template for the Job_* files created by libIGCM. In there, you can find the following header information. |
| 4 | |
| 5 | {{{ |
| 6 | #-Q- lxiv8 ###################### |
| 7 | #-Q- lxiv8 ## OBELIX LSCE ## |
| 8 | #-Q- lxiv8 ###################### |
| 9 | #-Q- lxiv8 #PBS -N ::Jobname:: |
| 10 | #-Q- lxiv8 #PBS -m a |
| 11 | #-Q- lxiv8 #PBS -j oe |
| 12 | #-Q- lxiv8 #PBS -q medium |
| 13 | #-Q- lxiv8 #PBS -o Script_Output_::Jobname::.000001 |
| 14 | #-Q- lxiv8 #PBS -S /bin/ksh |
| 15 | #-Q- lxiv8 #PBS -v BATCH_NUM_PROC_TOT=::JobNumProcTot:: |
| 16 | #-Q- lxiv8 #PBS -l nodes=1:ppn=::JobNumProcTot:: |
| 17 | }}} |
| 18 | |
| 19 | In order to change the queue to the short queue or the medium parallel queue (the two I use most often), you need to change the line |
| 20 | |
| 21 | {{{ |
| 22 | #-Q- lxiv8 #PBS -q medium |
| 23 | }}} |
| 24 | |
| 25 | to |
| 26 | |
| 27 | {{{ |
| 28 | #-Q- lxiv8 #PBS -q short |
| 29 | }}} |
| 30 | |
| 31 | or |
| 32 | |
| 33 | {{{ |
| 34 | #-Q- lxiv8 #PBS -q mediump |
| 35 | }}} |
| 36 | |
| 37 | NOTE: If you are using older versions of libIGCM, which you probably shouldn't be, you also need to change the "meduim" in following line in libIGCM:libIGCM_sys/libIGCM_sys_obelix.ksh |
| 38 | |
| 39 | {{{ |
| 40 | /usr/local/bin/qsub -q medium -o ${SUBMIT_DIR}/${Script_Output} -N ${config_UserChoices_JobName}.${CumulPeriod} < $1 |
| 41 | }}} |
| 42 | |
| 43 | This will ensure that all jobs submitted after the first job are in your desired queue. |