Follow the instructions from the practical session page: https://github.com/sc-camp/2016-debug
- SC-Camp Facebook https://www.facebook.com/groups/466942123331158/
- SC-Camp Twitter https://twitter.com/superccamp
Edit the file ~/.ssh/config (create it if it does not already exist) and adding the following entries:
Host toctoc
User *yourlogin*
Hostname toctoc.sc3.uis.edu.co
ForwardX11 yes
Host guane
User *yourlogin*
Hostname guane
ForwardX11 yes
ProxyCommand ssh -q toctoc "nc -q 0 %h %p"
Now you shall be able to issue the following command to connect to the cluster and obtain the welcome banner:
(laptop)$> ssh guane
In the sequel, we assume these aliases to be defined.
The first step is the reservation of a resource. Connect to the cluster frontend
(laptop)$> ssh guane
Once connected to the user frontend, book 1 node in interactive session.
jdoe@guane:~$ salloc -p all --nodes=1 --partition=all srun --pty bash
When the job is running, you can start the practical session.
Tutorial from A GDB Tutorial with Examples
Tutorial from Using Valgrind to Find Memory Leaks and Invalid Memory Use
A list of programs demonstrating the different kind of bus are available in the exercises directory.
Try the different debugging tools on every example to see how they behave and find the bugs.
Run the following command to download all the exercises:
git clone https://github.com/sc-camp/2016-debug.git sc-camp-2016-debug
-
You can compile each program manually using
gccoricc. You are encouraged to try both to see how differently they behave. Example:gcc program.c -o program. Add any additional parameter you might need. -
Some program required additional options to be compiled. They are indicated in comment at the beginning of each source file.