Información

Autor (res) Erik-Jan Lingen, Matthias Möller
Fecha de entrega Sin fecha de envío
Tiempo límite de envío Sin límite de envío

Inicia sesión

[OpenMP] Solution 3 : AXPY Operation

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


Task

Write a parallel program that computes

\begin{equation*} \mathbf{y}:=\alpha\mathbf{x}+\mathbf{y} \end{equation*}

for two vectors \(\mathbf{x},\mathbf{y}\in\mathbb{R}^N\) and a scalar coefficient \(\alpha\in\mathbb{R}\).

Test your program for different scheduling strategies and chunk sizes, and different values for \(N\).


Pregunta 1: AXPY Operation
Pregunta 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

Pregunta 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.