Skip to content

Commit

Permalink
Merge pull request #239 from cecilehannay/main
Browse files Browse the repository at this point in the history
change documentation about reservation queues
  • Loading branch information
cecilehannay authored Aug 1, 2024
2 parents 3e05b7e + 090e88a commit 66cd2d2
Showing 1 changed file with 26 additions and 41 deletions.
67 changes: 26 additions & 41 deletions notebooks/resources/tutorial_specific.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@
"<div class=\"alert alert-warning\">\n",
"You should have access to project account <strong>UESM0013</strong> and use this for your simulations.\n",
"</div>\n",
"\n"
"\n",
"You can change the account in your case directory using the following command:\n",
"```\n",
"./xmlchange PROJECT=UESM0013\n",
"```"
]
},
{
Expand All @@ -29,20 +33,26 @@
"### Special Queues\n",
"\n",
"<div class=\"alert alert-warning\">\n",
"We have a special queue every day for running to ensure you get through the derecho queues quickly and get your jobs run. These are only active for portions of each day during our lab sessions and change for each session. So you should be sure you are using the correct reservation queue. \n",
"\n",
" <strong>Schedule for Tutorial Reservation Queues</strong>\n",
" \n",
"<strong>Schedule for Tutorial Reservation Queues</strong>\n",
"- We have a special queue <strong>tutorial</strong> during the lab sessions to ensure you get through the derecho queues quickly and get your jobs run. This queue are only active during our lab sessions. \n",
"\n",
"- Outside the lab sessions, you should use the queue <strong>cpu</strong>\n",
" \n",
"</div>\n",
"\n",
"If you need to change the value for a run, you can change the reservation queue in your case directory using the following command:\n",
"\n",
"During the lab sessions:\n",
"```\n",
"Mon 14:00 - 17:00 derecho R???????\n",
"Tue 10:30 - 12:00 derecho R???????\n",
" 14:00 - 17:00 derecho R???????\n",
"Wed 10:30 - 12:00 derecho R???????\n",
" 14:00 - 17:00 derecho R???????\n",
"Thu 13:30 - 17:00 casper R???????\n",
"Fri 13:30 - 17:00 derecho R??????? \n",
"./xmlchange JOB_QUEUE=tutorial --force\n",
"```\n",
" \n",
"</div>"
"\n",
"Outside the lab sessions:\n",
"```\n",
"./xmlchange JOB_QUEUE=cpu --force\n",
"```"
]
},
{
Expand All @@ -60,31 +70,6 @@
"source": [
"In theory, you _should_ be able to automatically use this account and the reservation queues if you correctly set up your NCAR HPC environment using your `.profile` or `.tcshrc` files, as described below. If you need to change the values for a run, you can change the account and reservation queue in your case directory using the following command:\n",
"\n",
"```\n",
"./xmlchange --force JOB_QUEUE=R???????\n",
"./xmlchange PROJECT=UESM0013\n",
"```\n",
"\n",
"For instance, on Wednesday\n",
"\n",
"- If (Wed 10:30 - 12:00) then\n",
"\n",
"```\n",
"./xmlchange JOB_QUEUE=R??????? --force\n",
"``` \n",
"\n",
"- If (Wed 14:00 - 17:00) then\n",
"\n",
"```\n",
"./xmlchange JOB_QUEUE=R??????? --force\n",
"```\n",
"\n",
"\n",
"- If (Wed at another time) then\n",
"```\n",
"./xmlchange JOB_QUEUE=regular\n",
"```\n",
"\n",
"If you do use these commands, make sure for the `JOB_QUEUE` you are using the **correct** reservation code for the relevant day _and_ time of that lab session. You should not have to set the `PROJECT` more than once during the tutorial if your profile is set up, as described below, but we include it for your reference in case you are having trouble."
]
},
Expand Down Expand Up @@ -203,7 +188,7 @@
"Copy over the `.profile` file into your home directory: \n",
" \n",
"```\n",
"cp /glade/campaign/cesm/development/cross-wg/profile ~/.profile\n",
"cp /glade/campaign/cesm/tutorial/tutorial_2024_env/profile ~/.profile\n",
"```\n",
"<br>\n",
"\n",
Expand Down Expand Up @@ -275,7 +260,7 @@
"\n",
"Copy over the `.tcshrc` file to your home directory:\n",
"```\n",
"cp /glade/campaign/cesm/development/cross-wg/tcshrc ~/.tcshrc\n",
"cp /glade/campaign/cesm/tutorial/tutorial_2024_envy/tcshrc ~/.tcshrc\n",
"```\n",
" \n",
"<br>\n",
Expand Down Expand Up @@ -348,7 +333,7 @@
"\n",
"```\n",
"export PROJECT=UESM0013 #<- This should never change over the course of the tutorial\n",
"export TUTORIAL_QUEUE=R??????? #<- This will be different for every practical. \n",
"export TUTORIAL_QUEUE=tutorial #<- This will be different for every practical. \n",
" #<- Look at the schedule below:\n",
"```\n",
"\n",
Expand All @@ -366,7 +351,7 @@
"Add to your .tcshrc: \n",
"```\n",
"setenv PROJECT UESM0013 #<-This should never change over the course of the tutorial\n",
"setenv TUTORIAL_QUEUE R??????? #<-This will be different for every practical \n",
"setenv TUTORIAL_QUEUE tutorial #<-This will be different for every practical \n",
" #<- Look at the schedule below:\n",
"```\n",
" \n",
Expand Down

0 comments on commit 66cd2d2

Please sign in to comment.