Thông tin

Tác giả Erik-Jan Lingen, Matthias Möller
Hạn chót Không có hạn chót
Giới hạn nộp bài Không có giới hạn

Đăng nhập

[OpenMP] Exercise 8 : Matrix-Matrix Multiplication

This material is part of the course Practical Introduction to Parallel Programming and meant for educational purposes only.


Task

Write a parallel implementation of the matrix-matrix multiplication

\begin{equation*} \mathbf{A}\in\mathbb{R}^{N\times M},\, \mathbf{B}\in\mathbb{R}^{M\times O}\,: \quad \mathbf{C}=\mathbf{A}\cdot \mathbf{B}\in\mathbb{R}^{N\times O} \end{equation*}

where each entry of matrix \(\mathbf{C}\) is computed from

\begin{equation*} c_{ik}=\sum_{j=1}^M a_{ij}\cdot b_{jk}. \end{equation*}

Câu hỏi 1: Matrix-Matrix Multiplication
Câu hỏi 2: OpenMP environment variables

Specify the OpenMP environment variables that should be used for running your program (export OMP_NUM_THREADS=1 ...). Use semicolons to separate multiple variables

Câu hỏi 3: Command Line Argument

Specify the command line arguments that should be passed to your program when it is run. Arguments must be given in quotes and separated by commas. Leave this filed empty if you do not want to specify command line arguments.

Example: "1","int","arg=2" is interpreted as three arguments 1, int, and arg=2.