Response 5. Added Makefile
This commit is contained in:
parent
a889e2b5ae
commit
f19b2856e4
3 changed files with 35 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
clear; close all; clc;
|
clear; close all; clc;
|
||||||
p = 70;
|
p = -70;
|
||||||
Nvals = [10 20 30 40 70];
|
Nvals = [10 20 30 40 70];
|
||||||
|
|
||||||
figure; hold on; box on;
|
figure; hold on; box on;
|
||||||
|
|
|
||||||
BIN
Sheet5/code_Sheet5.pdf
Normal file
BIN
Sheet5/code_Sheet5.pdf
Normal file
Binary file not shown.
34
Sheet5/gh_response.txt
Normal file
34
Sheet5/gh_response.txt
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
Summery of your results?!
|
||||||
|
|
||||||
|
g++ -O3 -fopenmp mainEx1.cpp mylib.cpp -o dotprod
|
||||||
|
I added Makefile, CLANG_default.mk GCC_default.mk to your repository
|
||||||
|
|
||||||
|
Linux: Using g++
|
||||||
|
> make run EX=Ex5
|
||||||
|
Using clang++
|
||||||
|
> make run EX=Ex5 COMPILER=CLANG_
|
||||||
|
|
||||||
|
|
||||||
|
1:
|
||||||
|
no scheduling tested
|
||||||
|
no functionality as reduction_append implemented
|
||||||
|
|
||||||
|
2: mainEx2.cpp
|
||||||
|
no parallelization at all. neighter OpenMP nor C++ execution policies
|
||||||
|
|
||||||
|
3: mainEx3.cpp
|
||||||
|
nested parallelization in count_goldbach(), single_goldbach()
|
||||||
|
Did that pay off?!
|
||||||
|
|
||||||
|
4:
|
||||||
|
Try
|
||||||
|
collapse(2)
|
||||||
|
in bench_funcs.cpp:75
|
||||||
|
(faster in my code for Mat-Mat-Mult)
|
||||||
|
|
||||||
|
5:
|
||||||
|
Why not using my provided 2D FEM code? That was already required in exercise 3.
|
||||||
|
Code only 1D FEM whioch is quite simple to parallelize because of the very simple matrix pattern.
|
||||||
|
jacobi_par_parallel()
|
||||||
|
build_fem_system_atomic() OK
|
||||||
Loading…
Add table
Add a link
Reference in a new issue