diff --git a/Projet/CODE/apm/gmon.out b/Projet/CODE/apm/gmon.out new file mode 100644 index 0000000000000000000000000000000000000000..7d8ec1418417db2239e4ff48af92b024ec7f5f40 Binary files /dev/null and b/Projet/CODE/apm/gmon.out differ diff --git a/Projet/CODE/apm/src/apm_omp.c b/Projet/CODE/apm/src/apm_omp.c index 52c307c484e2d02b815727daffb1b29dc4a64b5c..739ec7b1deb5448438a114ab688cc4b70a4609aa 100644 --- a/Projet/CODE/apm/src/apm_omp.c +++ b/Projet/CODE/apm/src/apm_omp.c @@ -215,19 +215,20 @@ main(int argc, char **argv) return 1; } - int distance = 0; int matches = 0; - #pragma omp parallel for reduction(+:matches) private(distance) + #pragma omp parallel for reduction(+:matches) for (j = 0; j < n_bytes; j++) { - + int distance = 0; #if APM_DEBUG + if (j % (n_bytes / 100) == 0) { printf("Procesing byte %ld (out of %ld)(%ld%%)\n", j, n_bytes, j / (n_bytes / 100)); } + #endif if (n_bytes - j < size_pattern)