diff --git a/A4/TP_A4/exo1/Makefile b/A4/TP_A4/exo1/Makefile new file mode 100644 index 0000000..08f7897 --- /dev/null +++ b/A4/TP_A4/exo1/Makefile @@ -0,0 +1,4 @@ +CXX = gcc +CFLAGS = -Wall -fopenmp -O3 +exo1 : + $(CXX) $(CFLAGS) exo1.c -o exo1 \ No newline at end of file diff --git a/A4/TP_A4/exo1/exo1 b/A4/TP_A4/exo1/exo1 new file mode 100755 index 0000000..84c5c44 Binary files /dev/null and b/A4/TP_A4/exo1/exo1 differ diff --git a/A4/TP_A4/exo1/exo1.c b/A4/TP_A4/exo1/exo1.c new file mode 100644 index 0000000..1c10986 --- /dev/null +++ b/A4/TP_A4/exo1/exo1.c @@ -0,0 +1,16 @@ +#include "stdio.h" +#include +#include + +#include + +int main(int argc, char **argv) +{ + // Lecture des caractétistiques du processeur + int nb_thread = omp_get_max_threads(); + int nb_proc = omp_get_num_procs(); + + printf("Nb thread max = %d\n\r", nb_thread); + printf("Nb procs : %d\n\r", nb_proc); + return 0; +} diff --git a/A4/TP_A4/exo2/.txt b/A4/TP_A4/exo2/.txt new file mode 100644 index 0000000..f237f99 --- /dev/null +++ b/A4/TP_A4/exo2/.txt @@ -0,0 +1,701 @@ +Nb thread max 1 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 1 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000003 seconds + Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000034 seconds + Nb thread max 2 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 2 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000018 seconds + Nb thread max 4 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000036 seconds +OMP work took 0.000009 seconds + Nb thread max 6 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000033 seconds +OMP work took 0.000007 seconds + Nb thread max 8 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000033 seconds +OMP work took 0.000008 seconds + Nb thread max 10 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000007 seconds + Nb thread max 12 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000011 seconds + Nb thread max 1 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000001 seconds +OMP work took 0.000001 seconds + Nb thread max 1 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000004 seconds +OMP work took 0.000003 seconds + Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000034 seconds + Nb thread max 2 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000017 seconds + Nb thread max 4 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000009 seconds + Nb thread max 6 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000006 seconds + Nb thread max 8 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000030 seconds +OMP work took 0.000008 seconds + Nb thread max 10 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 10 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000007 seconds + Nb thread max 12 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 12 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 12 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 12 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000010 seconds + Nb thread max 1 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 1 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000003 seconds + Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000034 seconds + Nb thread max 2 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 2 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000018 seconds + Nb thread max 4 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000010 seconds + Nb thread max 6 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000030 seconds +OMP work took 0.000007 seconds + Nb thread max 8 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000030 seconds +OMP work took 0.000008 seconds + Nb thread max 10 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 10 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000030 seconds +OMP work took 0.000007 seconds + Nb thread max 12 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000003 seconds + Nb thread max 12 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000004 seconds + Nb thread max 12 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000007 seconds + Nb thread max 1 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000004 seconds +OMP work took 0.000003 seconds + Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000033 seconds +OMP work took 0.000034 seconds + Nb thread max 2 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 2 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000017 seconds + Nb thread max 4 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000009 seconds + Nb thread max 6 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000030 seconds +OMP work took 0.000007 seconds + Nb thread max 8 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + Nb thread max 8 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000032 seconds +OMP work took 0.000008 seconds + Nb thread max 10 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 10 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 10 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 10 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000030 seconds +OMP work took 0.000007 seconds + Nb thread max 12 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000003 seconds + Nb thread max 12 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000007 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo2/Makefile b/A4/TP_A4/exo2/Makefile new file mode 100644 index 0000000..2df314f --- /dev/null +++ b/A4/TP_A4/exo2/Makefile @@ -0,0 +1,4 @@ +CXX = gcc +CFLAGS = -Wall -fopenmp -O3 +exo2 : + $(CXX) $(CFLAGS) $(LDLIBS) exo2.c -o exo2 -lm \ No newline at end of file diff --git a/A4/TP_A4/exo2/exo2 b/A4/TP_A4/exo2/exo2 new file mode 100755 index 0000000..b21c188 Binary files /dev/null and b/A4/TP_A4/exo2/exo2 differ diff --git a/A4/TP_A4/exo2/exo2.c b/A4/TP_A4/exo2/exo2.c new file mode 100644 index 0000000..03c4c52 --- /dev/null +++ b/A4/TP_A4/exo2/exo2.c @@ -0,0 +1,74 @@ +#include "stdio.h" +#include +#include +#include + +#include +#include + +int main(int argc, char **argv) +{ + int N; + int nb_thread; + double start; + double end; + + // Prise en compte des arguments + if (argc == 3){ + N = atoi(argv[1]); + nb_thread = atoi(argv[2]); + + printf("Nb thread max %d\n", nb_thread); + printf("N %d\n", N); + } else { + printf("Missing parameters\n\r"); + return EXIT_FAILURE; + } + + srand(time(NULL)); + + double x[N], y[N]; + for(int i=0; i> time.txt + done +done \ No newline at end of file diff --git a/A4/TP_A4/exo2/time.txt b/A4/TP_A4/exo2/time.txt new file mode 100644 index 0000000..c765445 --- /dev/null +++ b/A4/TP_A4/exo2/time.txt @@ -0,0 +1,210 @@ +Nb thread max 1 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + +Nb thread max 1 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + +Nb thread max 1 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000001 seconds +OMP work took 0.000001 seconds + +Nb thread max 1 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000003 seconds + +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000033 seconds +OMP work took 0.000035 seconds + +Nb thread max 2 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + +Nb thread max 2 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + +Nb thread max 2 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 2 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + +Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000033 seconds +OMP work took 0.000017 seconds + +Nb thread max 4 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 4 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 4 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 4 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + +Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000039 seconds +OMP work took 0.000009 seconds + +Nb thread max 6 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 6 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 6 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 6 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + +Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000006 seconds + +Nb thread max 8 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 8 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 8 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 8 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + +Nb thread max 8 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000034 seconds +OMP work took 0.000008 seconds + +Nb thread max 10 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 10 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 10 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 10 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000001 seconds + +Nb thread max 10 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000030 seconds +OMP work took 0.000007 seconds + +Nb thread max 12 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + +Nb thread max 12 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + +Nb thread max 12 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + +Nb thread max 12 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000002 seconds + +Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000031 seconds +OMP work took 0.000007 seconds + diff --git a/A4/TP_A4/exo2/time_500k.txt b/A4/TP_A4/exo2/time_500k.txt new file mode 100644 index 0000000..5547dce --- /dev/null +++ b/A4/TP_A4/exo2/time_500k.txt @@ -0,0 +1,36 @@ +Nb thread max 1 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000257 seconds +OMP work took 0.000231 seconds + Nb thread max 2 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000216 seconds +OMP work took 0.000096 seconds + Nb thread max 4 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000216 seconds +OMP work took 0.000052 seconds + Nb thread max 6 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000214 seconds +OMP work took 0.000041 seconds + Nb thread max 8 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000216 seconds +OMP work took 0.000048 seconds + Nb thread max 10 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000205 seconds +OMP work took 0.000043 seconds + Nb thread max 12 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000209 seconds +OMP work took 0.000044 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo2/time_maths.txt b/A4/TP_A4/exo2/time_maths.txt new file mode 100644 index 0000000..f5beced --- /dev/null +++ b/A4/TP_A4/exo2/time_maths.txt @@ -0,0 +1,101 @@ +Nb thread max 1 +N 10 +Mean time on 10000 executions +Sequential work took 0.000002 seconds +OMP work took 0.000001 seconds + Nb thread max 1 +N 100 +Mean time on 10000 executions +Sequential work took 0.000008 seconds +OMP work took 0.000006 seconds + Nb thread max 1 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000065 seconds +OMP work took 0.000062 seconds + Nb thread max 1 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000661 seconds +OMP work took 0.000655 seconds + Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.006707 seconds +OMP work took 0.006700 seconds + Nb thread max 2 +N 10 +Mean time on 10000 executions +Sequential work took 0.000001 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 100 +Mean time on 10000 executions +Sequential work took 0.000008 seconds +OMP work took 0.000004 seconds + Nb thread max 2 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000066 seconds +OMP work took 0.000030 seconds + Nb thread max 2 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000673 seconds +OMP work took 0.000335 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.006723 seconds +OMP work took 0.003375 seconds + Nb thread max 6 +N 10 +Mean time on 10000 executions +Sequential work took 0.000002 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100 +Mean time on 10000 executions +Sequential work took 0.000008 seconds +OMP work took 0.000003 seconds + Nb thread max 6 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000068 seconds +OMP work took 0.000015 seconds + Nb thread max 6 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000663 seconds +OMP work took 0.000112 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.006681 seconds +OMP work took 0.001190 seconds + Nb thread max 12 +N 10 +Mean time on 10000 executions +Sequential work took 0.000003 seconds +OMP work took 0.000007 seconds + Nb thread max 12 +N 100 +Mean time on 10000 executions +Sequential work took 0.000007 seconds +OMP work took 0.000003 seconds + Nb thread max 12 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000063 seconds +OMP work took 0.000009 seconds + Nb thread max 12 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000673 seconds +OMP work took 0.000089 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.006725 seconds +OMP work took 0.001012 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo2/time_maths_500k.txt b/A4/TP_A4/exo2/time_maths_500k.txt new file mode 100644 index 0000000..8266d45 --- /dev/null +++ b/A4/TP_A4/exo2/time_maths_500k.txt @@ -0,0 +1,31 @@ +Nb thread max 1 +N 500000 +Mean time on 10000 executions +Sequential work took 0.032975 seconds +OMP work took 0.033541 seconds + Nb thread max 2 +N 500000 +Mean time on 10000 executions +Sequential work took 0.033422 seconds +OMP work took 0.017121 seconds + Nb thread max 4 +N 500000 +Mean time on 10000 executions +Sequential work took 0.033458 seconds +OMP work took 0.008658 seconds + Nb thread max 6 +N 500000 +Mean time on 10000 executions +Sequential work took 0.033736 seconds +OMP work took 0.005914 seconds + Nb thread max 10 +N 500000 +Mean time on 10000 executions +Sequential work took 0.033780 seconds +OMP work took 0.005240 seconds + Nb thread max 12 +N 500000 +Mean time on 10000 executions +Sequential work took 0.033495 seconds +OMP work took 0.004825 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo2/timings.png b/A4/TP_A4/exo2/timings.png new file mode 100644 index 0000000..57c55bf Binary files /dev/null and b/A4/TP_A4/exo2/timings.png differ diff --git a/A4/TP_A4/exo2/timings_500k.png b/A4/TP_A4/exo2/timings_500k.png new file mode 100644 index 0000000..a4a7e82 Binary files /dev/null and b/A4/TP_A4/exo2/timings_500k.png differ diff --git a/A4/TP_A4/exo2/timings_maths.png b/A4/TP_A4/exo2/timings_maths.png new file mode 100644 index 0000000..4e2ca2f Binary files /dev/null and b/A4/TP_A4/exo2/timings_maths.png differ diff --git a/A4/TP_A4/exo2/timings_maths_500k.png b/A4/TP_A4/exo2/timings_maths_500k.png new file mode 100644 index 0000000..b5af890 Binary files /dev/null and b/A4/TP_A4/exo2/timings_maths_500k.png differ diff --git a/A4/TP_A4/exo3/Makefile b/A4/TP_A4/exo3/Makefile new file mode 100644 index 0000000..333c059 --- /dev/null +++ b/A4/TP_A4/exo3/Makefile @@ -0,0 +1,4 @@ +CXX = gcc +CFLAGS = -Wall -fopenmp -O3 +exo3 : + $(CXX) $(CFLAGS) $(LDLIBS) exo3.c -o exo3 -lm \ No newline at end of file diff --git a/A4/TP_A4/exo3/atomic_schedule.png b/A4/TP_A4/exo3/atomic_schedule.png new file mode 100644 index 0000000..d265391 Binary files /dev/null and b/A4/TP_A4/exo3/atomic_schedule.png differ diff --git a/A4/TP_A4/exo3/exo3 b/A4/TP_A4/exo3/exo3 new file mode 100755 index 0000000..05d6d97 Binary files /dev/null and b/A4/TP_A4/exo3/exo3 differ diff --git a/A4/TP_A4/exo3/exo3.c b/A4/TP_A4/exo3/exo3.c new file mode 100644 index 0000000..7de01ca --- /dev/null +++ b/A4/TP_A4/exo3/exo3.c @@ -0,0 +1,66 @@ +#include "stdio.h" +#include +#include +#include + +#include +#include + +int main(int argc, char **argv) +{ + int N; + int nb_thread; + double start; + double end; + + if (argc == 3){ + N = atoi(argv[1]); + nb_thread = atoi(argv[2]); + + printf("Nb thread max %d\n", nb_thread); + printf("N %d\n", N); + } else { + printf("Missing parameters\n\r"); + return EXIT_FAILURE; + } + + srand(time(NULL)); + + double x[N], y = 0; + for(int i=0; i> time_reduction.txt + done +done \ No newline at end of file diff --git a/A4/TP_A4/exo3/script2.sh b/A4/TP_A4/exo3/script2.sh new file mode 100755 index 0000000..05dfd75 --- /dev/null +++ b/A4/TP_A4/exo3/script2.sh @@ -0,0 +1,10 @@ +#!/bin/bash +rm exo3 +make +for T in 1 2 4 6 12 +do + for N in 100000 + do + ./exo3 $N $T >> time_reduction_schedule_static_1000.txt + done +done \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_atomic_schedule_dynamic_100.txt b/A4/TP_A4/exo3/time_atomic_schedule_dynamic_100.txt new file mode 100644 index 0000000..e16f3ee --- /dev/null +++ b/A4/TP_A4/exo3/time_atomic_schedule_dynamic_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000108 seconds +OMP work took 0.001046 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000113 seconds +OMP work took 0.004943 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000112 seconds +OMP work took 0.006735 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.007110 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.009979 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_atomic_schedule_guided_100.txt b/A4/TP_A4/exo3/time_atomic_schedule_guided_100.txt new file mode 100644 index 0000000..851f2fe --- /dev/null +++ b/A4/TP_A4/exo3/time_atomic_schedule_guided_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000107 seconds +OMP work took 0.000993 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.005029 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.006990 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.007121 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.011034 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_atomic_schedule_static_100.txt b/A4/TP_A4/exo3/time_atomic_schedule_static_100.txt new file mode 100644 index 0000000..23dcfea --- /dev/null +++ b/A4/TP_A4/exo3/time_atomic_schedule_static_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000107 seconds +OMP work took 0.000991 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.004122 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.006078 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.006983 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.010475 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_critical_schedule_dynamic_100.txt b/A4/TP_A4/exo3/time_critical_schedule_dynamic_100.txt new file mode 100644 index 0000000..6e91c21 --- /dev/null +++ b/A4/TP_A4/exo3/time_critical_schedule_dynamic_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000109 seconds +OMP work took 0.001329 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.003872 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.006425 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000107 seconds +OMP work took 0.008425 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000108 seconds +OMP work took 0.012499 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_critical_schedule_guided_100.txt b/A4/TP_A4/exo3/time_critical_schedule_guided_100.txt new file mode 100644 index 0000000..8a0d959 --- /dev/null +++ b/A4/TP_A4/exo3/time_critical_schedule_guided_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000110 seconds +OMP work took 0.001265 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.002476 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.005363 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.006367 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.010114 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_critical_schedule_static_100.txt b/A4/TP_A4/exo3/time_critical_schedule_static_100.txt new file mode 100644 index 0000000..1e43ec3 --- /dev/null +++ b/A4/TP_A4/exo3/time_critical_schedule_static_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000109 seconds +OMP work took 0.001290 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.002057 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.005708 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.006752 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000108 seconds +OMP work took 0.012068 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_reduction.txt b/A4/TP_A4/exo3/time_reduction.txt new file mode 100644 index 0000000..dcde021 --- /dev/null +++ b/A4/TP_A4/exo3/time_reduction.txt @@ -0,0 +1,151 @@ +Nb thread max 1 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000000 seconds + Nb thread max 1 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000001 seconds +OMP work took 0.000001 seconds + Nb thread max 1 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000011 seconds +OMP work took 0.000010 seconds + Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000100 seconds + Nb thread max 1 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000509 seconds +OMP work took 0.000503 seconds + Nb thread max 2 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000001 seconds +OMP work took 0.000001 seconds + Nb thread max 2 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000010 seconds +OMP work took 0.000006 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000052 seconds + Nb thread max 2 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000506 seconds +OMP work took 0.000255 seconds + Nb thread max 4 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000001 seconds +OMP work took 0.000001 seconds + Nb thread max 4 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000010 seconds +OMP work took 0.000003 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000027 seconds + Nb thread max 4 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000505 seconds +OMP work took 0.000130 seconds + Nb thread max 6 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000001 seconds +OMP work took 0.000001 seconds + Nb thread max 6 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000010 seconds +OMP work took 0.000003 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000018 seconds + Nb thread max 6 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000518 seconds +OMP work took 0.000087 seconds + Nb thread max 12 +N 10 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 100 +Mean time on 10000 executions +Sequential work took 0.000000 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 1000 +Mean time on 10000 executions +Sequential work took 0.000001 seconds +OMP work took 0.000002 seconds + Nb thread max 12 +N 10000 +Mean time on 10000 executions +Sequential work took 0.000010 seconds +OMP work took 0.000003 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000013 seconds + Nb thread max 12 +N 500000 +Mean time on 10000 executions +Sequential work took 0.000508 seconds +OMP work took 0.000053 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_reduction_schedule_dynamic_100.txt b/A4/TP_A4/exo3/time_reduction_schedule_dynamic_100.txt new file mode 100644 index 0000000..add9216 --- /dev/null +++ b/A4/TP_A4/exo3/time_reduction_schedule_dynamic_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.000108 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000099 seconds +OMP work took 0.000059 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000042 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000033 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000045 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_reduction_schedule_guided_100.txt b/A4/TP_A4/exo3/time_reduction_schedule_guided_100.txt new file mode 100644 index 0000000..7467a40 --- /dev/null +++ b/A4/TP_A4/exo3/time_reduction_schedule_guided_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000101 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000099 seconds +OMP work took 0.000050 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000099 seconds +OMP work took 0.000027 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000020 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000017 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_reduction_schedule_static_100.txt b/A4/TP_A4/exo3/time_reduction_schedule_static_100.txt new file mode 100644 index 0000000..e859d3f --- /dev/null +++ b/A4/TP_A4/exo3/time_reduction_schedule_static_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000101 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000050 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000098 seconds +OMP work took 0.000027 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000019 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.000013 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_reduction_schedule_static_1000.txt b/A4/TP_A4/exo3/time_reduction_schedule_static_1000.txt new file mode 100644 index 0000000..7a4c23f --- /dev/null +++ b/A4/TP_A4/exo3/time_reduction_schedule_static_1000.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000106 seconds +OMP work took 0.000108 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000112 seconds +OMP work took 0.000053 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000027 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000018 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000099 seconds +OMP work took 0.000013 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_dynamic_1.txt b/A4/TP_A4/exo3/time_schedule_dynamic_1.txt new file mode 100644 index 0000000..f164b69 --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_dynamic_1.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.001006 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.003949 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.003373 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.003275 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.002237 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_dynamic_100.txt b/A4/TP_A4/exo3/time_schedule_dynamic_100.txt new file mode 100644 index 0000000..14da2db --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_dynamic_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000111 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000085 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.000052 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000042 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000099 seconds +OMP work took 0.000033 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_dynamic_12.txt b/A4/TP_A4/exo3/time_schedule_dynamic_12.txt new file mode 100644 index 0000000..904f20c --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_dynamic_12.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000107 seconds +OMP work took 0.000193 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.000374 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.000317 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000310 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000241 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_dynamic_4.txt b/A4/TP_A4/exo3/time_schedule_dynamic_4.txt new file mode 100644 index 0000000..c378ebf --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_dynamic_4.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000106 seconds +OMP work took 0.000336 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000107 seconds +OMP work took 0.001010 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000931 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.000853 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000631 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_guided_1.txt b/A4/TP_A4/exo3/time_schedule_guided_1.txt new file mode 100644 index 0000000..90e1aed --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_guided_1.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000101 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000052 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000105 seconds +OMP work took 0.000030 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000022 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000022 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_guided_100.txt b/A4/TP_A4/exo3/time_schedule_guided_100.txt new file mode 100644 index 0000000..63426ad --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_guided_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000101 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000054 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000027 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000020 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000099 seconds +OMP work took 0.000016 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_guided_12.txt b/A4/TP_A4/exo3/time_schedule_guided_12.txt new file mode 100644 index 0000000..057ff5b --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_guided_12.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000105 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000109 seconds +OMP work took 0.000053 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000028 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000021 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000019 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_guided_4.txt b/A4/TP_A4/exo3/time_schedule_guided_4.txt new file mode 100644 index 0000000..d3936a0 --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_guided_4.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000102 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000098 seconds +OMP work took 0.000052 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000099 seconds +OMP work took 0.000028 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000022 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000020 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_static_1.txt b/A4/TP_A4/exo3/time_schedule_static_1.txt new file mode 100644 index 0000000..ffdfafe --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_static_1.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000106 seconds +OMP work took 0.000103 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000051 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000027 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000103 seconds +OMP work took 0.000019 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000106 seconds +OMP work took 0.000022 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_static_100.txt b/A4/TP_A4/exo3/time_schedule_static_100.txt new file mode 100644 index 0000000..bda4e59 --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_static_100.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000102 seconds +OMP work took 0.000101 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000099 seconds +OMP work took 0.000051 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000026 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000018 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000011 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_static_12.txt b/A4/TP_A4/exo3/time_schedule_static_12.txt new file mode 100644 index 0000000..707a72f --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_static_12.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000104 seconds +OMP work took 0.000106 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000051 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000026 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000018 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000015 seconds + \ No newline at end of file diff --git a/A4/TP_A4/exo3/time_schedule_static_4.txt b/A4/TP_A4/exo3/time_schedule_static_4.txt new file mode 100644 index 0000000..a568d96 --- /dev/null +++ b/A4/TP_A4/exo3/time_schedule_static_4.txt @@ -0,0 +1,26 @@ +Nb thread max 1 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000107 seconds +OMP work took 0.000107 seconds + Nb thread max 2 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000109 seconds +OMP work took 0.000052 seconds + Nb thread max 4 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000100 seconds +OMP work took 0.000027 seconds + Nb thread max 6 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000020 seconds + Nb thread max 12 +N 100000 +Mean time on 10000 executions +Sequential work took 0.000101 seconds +OMP work took 0.000017 seconds + \ No newline at end of file