Hide menu

TDDC78 labs (2016)

Lab material

Exam Preparation

  • Lesson Questions (Updated 21/05/2015)
  • Registration

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

    Deadline: 8 April 2016


    We offer three lab groups, called Grupp_A, Grupp_B and Grupp_C in the schedule, which run in 2 passes (groups B and C are in parallel).


    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: 8 April 2016

    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 before May 27, 2016.

    General notes

    • Course accounts at NSC may get erased automatically after 2016-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: 2016-04-17