Introduction to PDC's environment
In this, and all Summer School computer exercises, you will be working in pairs using Linux workstations. The goal is to verify that your accounts work and for you to learn the basics of the PDC computer environment.
Finding information
One of your most important skills is to be able to find information in order to learn and understand new things. For this lab your main sources of information are:
-
Commands like man, -h, apropos...
- The slides form the lecture Introduction to PDC's Environment
- The PDC web pages
- Internet
If you get stuck, have any problems with your account or in any other way want to check that you have grasped something in this lab correctly - please ask the course assistants for help! What you learn today is the basis for the two following weeks of lab exercises.
Exercises and Questions
On the local Linux workstation
Tasks:- Login on a workstation in the computer lab room.
- Let your lab partner try to login as well.
- Open a local terminal window (shell window)
- Open an editor and create a file called lab1.txt in your home directory in which you write your answers to the questions in this lab exercise.
- For how many hours are your local Kerberos tickets valid?
- Where is your home directory located?
- Do you have a PDC or a NADA account?
- What is the quota in your home directory?
- Open another terminal window (you should now have two)
- Make sure that you have a Kerberos ticket which is forwardable and valid for two days.
- Login on summer-cray.
On the login node
Tasks:- Check your Kerberos ticket on the login node.
- In what directory did you arrive on the login node?
- Can you open the file lab1.txt on the login node?
- Create a directory called Lab1 on the parallel file system.
- Download and compile this serial Fortran program standing in the directory Lab1.
- Download and compile this serial C program standing in the directory Lab1.
- Run the serial Fortran program.
- Run the serial C program.
At this point - contact a lab assistant to check your login and that you ran your code correctly!
Tasks:
- Download, compile and run this C MPI program.
- Download, compile and run this Fortran MPI program.
- Download, compile and run this C OpenMP program.
- Download, compile and run this Fortran OpenMP program.
- Why is the command aprun used?
- For what should you use; Scratch-space? Nobackup? (on the parallel filesystem).
- What does the setting:
#PBS -l mppwidth=24
do in a submit script?
Contact a lab assistant to get a signature on your attendance sheet!
Bonus exercises
- Create a directory in your home catalog which only you and your lab partner can read and write in (only you should be given rights to change access rights in that folder).
- What does the command wget do?
- Send an e-mail to your lab partner (replace with the username) at the address.
username@pdc.kth.se
- Have your lab partner send an e-mail to you at:
username@pdc.kth.se
- Verify that you both received the e-mails. If you didn't, have a look at this page.


