Update exercises/exerciseA/README.md

This commit is contained in:
Aitor Morales-Gregorio 2025-09-25 17:25:42 +02:00
parent b259adff52
commit 7a4e67d886

View file

@ -9,7 +9,7 @@ Objective: investigate speed-up of numpy code with multiple threads.
The script `heavy_computation.py` performs some matrix calculations with numpy.
You can change the number of threads that numpy uses for the calculation
using the `OMP_NUM_THREADS` environment variable like this:
using the `OMP_NUM_THREADS` environment variable **in the terminal**:
```
OMP_NUM_THREADS=7 python heavy_computation.py
```
@ -30,8 +30,8 @@ In `plot.py`, we have given code that will load all of the timing data in `timin
**TASK**: Add code to plot of the execution duration vs. the number of threads
**TASK**: Open a Pull Request with your plotting code and post your plots in the
conversation. Don't upload binaries to the Git remote!
**TASK**: Open a Pull Request with your plotting code *and* post your plots as
a comment in the PR. Don't commit pictures!
**OPTIONAL TASK**: Add code to calculate and plot the speed-up time compared
to single-threaded execution. Include your code and plot in the PR.