diff --git a/Sheet4/Ex3.m b/Sheet4/Ex3.m index f2ac85f..b43e76a 100644 --- a/Sheet4/Ex3.m +++ b/Sheet4/Ex3.m @@ -1,5 +1,5 @@ clear; close all; clc; -p = 70; +p = -70; Nvals = [10 20 30 40 70]; figure; hold on; box on; diff --git a/Sheet5/code_Sheet5.pdf b/Sheet5/code_Sheet5.pdf new file mode 100644 index 0000000..6aa7ee2 Binary files /dev/null and b/Sheet5/code_Sheet5.pdf differ diff --git a/Sheet5/gh_response.txt b/Sheet5/gh_response.txt new file mode 100644 index 0000000..d20576d --- /dev/null +++ b/Sheet5/gh_response.txt @@ -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