KAUST Supercomputing Laboratory Newsletter 18th February
In this newsletter:
- RCAC meeting
- AI users survey
- Tip of the week: Writing simple functions in bash shell
- Follow us on Twitter
- Previous Announcements
- Previous Tips
RCAC meeting
The project submission deadline for the next RCAC meeting is 28 February 2021. Please note that the RCAC meetings are held once per month. Projects received on or before the submission deadline will be included in the agenda for the subsequent RCAC meeting.The detailed procedures, updated templates and forms are available here: https://www.hpc.kaust.edu.sa/account-applications
AI users survey
As you are aware, the GPU resources at KSL have been in high demand nearing major conference deadlines. For better management of the current resources and planning for future expansions/extensions, it is important for us to keep up with the changing demand in workloads running on these GPU resources. We have designed a GPU workload characterization user survey to capture the state of your workloads. Please spare some time and complete this survey. We also kindly request AI faculty members to circulate the survey link to your students, postdocs and research scientists. Maximizing the number of responses will help us make more informed decisions which serve you well in near and far future.
Tip of the week: Writing simple functions in bash shell
Did you know you could also enrich your bash environment with functions accepting parameters? They nicely complement aliases and shortcuts already presented in previous tips like Bash Terminal keyboard shortcuts and Handy Bash Shell Aliases,
Defining a function is easy. Just type the following in your terminal, or include it in your ~/.bashrc if you plan to keep it in your environment.
foo() { arg1=$1 arg2=$2 # code here ... }
Additional parameters passed as arguments to a function can be retrieved as $1, $2, .... etc...
In order to call a function, type its name followed by the desired parameters
foo my_arg_1 my_arg_2
For example, here is how I implemented a function named interactive to start an interactive session on a given number of nodes and duration:
interactive() { echo starting interactive job of $1 min on $2 nodes on debug queue salloc --time=$1 -N $2 -p debug srun --pty bash -i }
just typing
interactive 30 2
will start an interactive job of 30 minutes using 2 nodes of Shaheen
Follow us on Twitter
Follow all the latest news on HPC within the Supercomputing Lab and at KAUST, on Twitter @KAUST_HPC.
Previous Announcements
http://www.hpc.kaust.edu.sa/announcements/