Programming Tools: Introduction to OpenMP


A. Below are some sample codes (serial version) that can be converted to OpenMP. The parallel version is not shown (exercise). The sample codes were prepared by Nikolaos Tryfonidis.

1. Hello World (serial): hello.c

2. Vector Addition (serial): VecAdd.c

3. Vector Dot Product (serial): DotProduct.c

4. Matrix Multiplication (serial): matmul.c

5. Normal Distribution (serial): normal.c

6. Find Maximum (serial): findmax.c

7. Load Imbalance (serial): imbalance.c

8. Poisson Equation (1D BVP) (serial): poisson.c


B. Lecture notes by Nikolaos Tryfonidis:

Part 1

Part 2