diff --git a/lectures/parallelism/slides.qmd b/lectures/parallelism/slides.qmd index b1f7c1211ad5b37a98b50f25943c7da806c4af5a..c7ecf400dc37e3fa00cd233e8c13d32aecd0eb9b 100644 --- a/lectures/parallelism/slides.qmd +++ b/lectures/parallelism/slides.qmd @@ -30,10 +30,8 @@ task-parallelism we should probably give a real definition and different flavour ::: {.column width="50%"} * 1d Tsunami equation -* Korteweg–De Vries equation +* Korteweg–De Vries equation - "PDE modeling waves on shallow water surfaces" [Wikipedia](https://en.wikipedia.org/wiki/Korteweg%E2%80%93De_Vries_equation) * Discretization not numerically accurate -* [Wikipedia](https://en.wikipedia.org/wiki/Korteweg%E2%80%93De_Vries_equation) -* FIXME ::: ::: {.column width="50%"} @@ -70,6 +68,12 @@ FIXME ``` ## Hands-on Session! {background-color=var(--dark-bg-color) .leftalign} +1. Load the GNU compliler and compile the code on Levante +```bash +module load gcc +g++ main.cpp -o main +``` + 1. Compile and run the example serially. Use `time ./serial.x` to time the execution. 23. Compile and run the example using OpenMP. Use `OMP_NUM_THREADS=2 time ./omp.x` to time the execution. @@ -212,7 +216,6 @@ Wikipedia ::: - ## Types of parallelism * **Data-level parallelism** supported by hardware through * instruction-level parallelism (e.g. pipelining)