Update Sheet5/Ex5_Second_Attempt/main.cpp
This commit is contained in:
parent
7356f2d8b5
commit
53f0a7dc0c
1 changed files with 19 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue