diff --git a/Sheet5/Ex5_Second_Attempt/main.cpp b/Sheet5/Ex5_Second_Attempt/main.cpp index 4162e91..ad540da 100644 --- a/Sheet5/Ex5_Second_Attempt/main.cpp +++ b/Sheet5/Ex5_Second_Attempt/main.cpp @@ -1,4 +1,23 @@ // 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 "getmatrix.h" //in here it is defined the parallel function