From 2ac97b39a985e52fb3d6ad6b8af8be4d277d30d8 Mon Sep 17 00:00:00 2001
From: Georgiana Mania <mania@dkrz.de>
Date: Mon, 10 Jun 2024 15:01:46 +0200
Subject: [PATCH] remove -O3 from hands-on

---
 lectures/parallelism/slides.qmd | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lectures/parallelism/slides.qmd b/lectures/parallelism/slides.qmd
index f695b35..9616a12 100644
--- a/lectures/parallelism/slides.qmd
+++ b/lectures/parallelism/slides.qmd
@@ -126,12 +126,12 @@ module load gcc
 ```
 2. Compile and run the serial example
 ```bash
-gcc -O3 main.c -o serial.x -lm
+gcc main.c -o serial.x -lm
 time ./serial.x   # use `time` to check the runtime
 ```
 3. Compile and run the example using OpenMP
 ```bash
-gcc -O3 -fopenmp main.c -o parallel.x -lm
+gcc -fopenmp main.c -o parallel.x -lm
 export OMP_NUM_THREADS=2
 time ./parallel.x
 ```
-- 
GitLab