Update Sheet5/Ex5_Second_Attempt/main.cpp

This commit is contained in:
Lisa Pizzo 2025-12-16 11:10:07 +01:00
commit 53f0a7dc0c

View file

@ -1,4 +1,23 @@
// Exercise 5 Parallelization of Exercise 3 // Exercise 5 Parallelization of Exercise 3
//HOW TO RUN IT ON MY MAC:
//cd ~/Desktop/jacobi_oo_stl/jacobi_oo_stl
//export CPPFLAGS="-I/opt/homebrew/opt/libomp/include"
//export LDFLAGS="-L/opt/homebrew/opt/libomp/lib"
//export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
//clang++ -std=c++17 -O3 \
-Xpreprocessor -fopenmp \
$CPPFLAGS \
main.cpp \
jacsolve.cpp \
getmatrix.cpp \
geom.cpp \
vdop.cpp \
userset.cpp \
$LDFLAGS -lomp \
-o Ex5
//./Ex5
#include "geom.h" #include "geom.h"
#include "getmatrix.h" //in here it is defined the parallel function #include "getmatrix.h" //in here it is defined the parallel function