Response 5. Added Makefile

This commit is contained in:
Gundolf Haase 2025-12-10 20:24:16 +01:00
commit f19b2856e4
3 changed files with 35 additions and 1 deletions

View file

@ -1,5 +1,5 @@
clear; close all; clc;
p = 70;
p = -70;
Nvals = [10 20 30 40 70];
figure; hold on; box on;

BIN
Sheet5/code_Sheet5.pdf Normal file

Binary file not shown.

34
Sheet5/gh_response.txt Normal file
View 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