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.


We offer two lab groups, Group A and Group B, which run at different times. See the schedule.

Sign up in WebReg. Deadline: 23 March 2018


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: 23 March 2018

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


All assignments must be completed and demonstrated by May 22, 2018 and reports handed in by May 24, 2018.

General notes

  • Access to Triolith will end when the machine is taken out of service in summer 2018. Please make sure to finish your labs on time. Course accounts at NSC will get erased automatically after 2018-12-31.
  • 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 Ola Leifler.


  • 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.
  • Lab5: (tools) only a report is needed, no demonstrated is required.

Page responsible: Webmaster
Last updated: 2018-05-18