This commit is contained in:
Gundolf Haase 2025-12-11 15:57:16 +01:00
commit 186320f76f
4 changed files with 7 additions and 7 deletions

0
ex3/seq/check_all Executable file → Normal file
View file

0
ex3/seq/jacobi_oo_stl/Makefile Executable file → Normal file
View file

View file

@ -10,7 +10,7 @@ WARNINGS = -Wall -pedantic -Wextra -Weffc++ -Woverloaded-virtual -Wfloat-equal -
-Wredundant-decls -fmax-errors=1
CXXFLAGS = -g -flto -O3 -ffast-math -march=native -fopenmp ${WARNINGS}
LINKFLAGS = -g -flto -O3 -lopenblas -llapacke -fopenmp
LINKFLAGS = -g -flto -O3 -lopenblas -llapacke -fopenmp -ltbb
all: ${PROGRAM}

View file

@ -58,8 +58,8 @@ void task_2() {
void task_3() {
printf("\n\n-------------- Task 3 --------------\n\n");
int threads = 4;
omp_set_num_threads(threads);
//int threads = 4;
//omp_set_num_threads(threads);
cout << omp_get_max_threads() << " threads have been started." << endl;
// #####################################
@ -207,9 +207,9 @@ void task_4() {
}
int main() {
task_2();
//task_2();
task_3();
task_4();
//task_4();
return 0;
}