Software configuration
During this course, you will have to use several pieces of software whose configuration may be complex. We provide you with a working installation of these software.
You are free to install these pieces of software on your machine, but:
- Please do not do that during the class (instead, focus on the content of the course!)
- In case of a problem, please contact François Trahay after the class.
Setting your environment to use the needed software
We provide a script that sets up your environment so that you can use the need software easily. At the beginning of each lab, just connect (with ssh) to one of the lab machines, and run the following command:
This sets up your environment so that you can use:
- MPICH (version 3.4)
- Clang (version 12) with a full support for OpenMP
- EZTrace (version 2.0)
- Vite
- CUDA
Initializing SSH
SSH key
First, you need an ssh key. If you don't have one, generate it with:
This generates a pair of ssh keys that consist of:
- /home/student/.ssh/id_rsa: a private key (that you should never share !)
- /home/student/.ssh/id_rsa.pub: a public key (that you can share)
Connection from a laptop to the lab machines
The lab machines are only accessible from the TSP network. To connect directly to one of the lab machines, set up a SSH proxy jump. Add the following lines to the file $HOME/.ssh/config (you may need to create this file).
Of course, you have to replace trahay_f with your TSP login.
Now, you should be able to connect to any lab machine by running ssh 3a401-08. If the machine asks for your password, you should copy your ssh public key with the following command:
Connection between the lab machines
When running an MPI application, MPI will connect (using ssh) to several of the lab machines. You need to run the following command to accept the ssh fingerprint of all the lab machines:
To check if your installation is working, run the following commands: