COM4521/COM6521: Lab 3 FAQ

Lab 3 - FAQ

These are some common questions that come up during this lab.

C/C++ is not in the project properties

Visual studio will only show the C/C++ compiler settings if the project contains a C/C++ file.

Exercise 1A - Access Violation/Crash

If you only parallelise the outer loop with #pragma omp parallel for, the variables j and k are shared by every thread. This can lead to them exceeding N, and hence accessing the array out of bounds.