Hide menu

TDDC78 labs (2017)

Lab material


Exam Preparation


To do the labs you need to register in Webreg and secure an account at NSC.

Deadline: 24 March 2017


We offer two lab groups, Group A and Group B, which are run in parallel. See the schedule.


We use supercomputer resources at NSC, including the recently built supercomputer, Triolith.
We gratefully acknowledge the support by NSC and SNIC.

See here for how to apply for an account on the NSC supercomputers.
Deadline: 24 March 2017

Make sure that you are properly registered on the course. If not, contact the studierektor Ahmed Rezine.

Nationals of certain countries may encounter problems getting access to NSC computers produced by US-based manufacturers. Read the rules for NSC user account holders for details. In case you should be denied access due to US embargo regulations, please contact the assistant or examinator for alternative exercises.


All assignments must be completed, demonstrated and handed in by May 24, 2017.

General notes

  • Course accounts at NSC may get erased automatically after 2017-09-01.
  • To complete the labs in the time you need to be well prepared for each session
  • We do not report any results to LADOK for persons who are not registered on the course. If you forgot to register in time, please contact the studierektor Ahmed Rezine.


  • Lab1: if larger image is tried, change the static memory allocation to dynamic allocation for storing image pixels.
  • Lab1: use scatterv and gatherv if different number of pixels should be sent to different processors.
  • Lab3: put the code "use omp_lib" after "program laplsolv" to enable OpenMP in fortran, compile with "ifort -fopenmp", and set number of thread by "export OMP_NUM_THREADS=2" before run your code.
  • Lab3: use "omp_get_wtime()" to measure time in OpenMP code.
  • Lab4: only a report is needed, no demonstrated is required.

Page responsible: Webmaster
Last updated: 2017-04-01