Skip to content
Extraits de code Groupes Projets
Valider eee3d5a1 rédigé par Nicolas MARIE's avatar Nicolas MARIE
Parcourir les fichiers

remove useless omp opti

parent a8ffa431
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Fichier ajouté
...@@ -215,19 +215,20 @@ main(int argc, char **argv) ...@@ -215,19 +215,20 @@ main(int argc, char **argv)
return 1; return 1;
} }
int distance = 0;
int matches = 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++) for (j = 0; j < n_bytes; j++)
{ {
int distance = 0;
#if APM_DEBUG #if APM_DEBUG
if (j % (n_bytes / 100) == 0) if (j % (n_bytes / 100) == 0)
{ {
printf("Procesing byte %ld (out of %ld)(%ld%%)\n", printf("Procesing byte %ld (out of %ld)(%ld%%)\n",
j, n_bytes, j / (n_bytes / 100)); j, n_bytes, j / (n_bytes / 100));
} }
#endif #endif
if (n_bytes - j < size_pattern) if (n_bytes - j < size_pattern)
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter