Mentions légales du service

Skip to content
Snippets Groups Projects
Commit a3e8c895 authored by Thierry's avatar Thierry
Browse files

[fix] supp printf

parent 2d6c86b1
Branches
No related tags found
No related merge requests found
...@@ -727,7 +727,6 @@ static bool __kmp_check_deps(kmp_int32 gtid, kmp_depnode_t *node, ...@@ -727,7 +727,6 @@ static bool __kmp_check_deps(kmp_int32 gtid, kmp_depnode_t *node,
npredecessors += __kmp_process_deps<false>(gtid, node, hash, dep_barrier, npredecessors += __kmp_process_deps<false>(gtid, node, hash, dep_barrier,
ndeps_noalias, noalias_dep_list, task); ndeps_noalias, noalias_dep_list, task);
#if 1
#if LIBOMP_USE_DYNHASH #if LIBOMP_USE_DYNHASH
//if (hash->nconflicts && hash->nelements && ((double)hash->nelements >= (0.5*KMP_DEPHASH_SIZE(hash->size)))) //if (hash->nconflicts && hash->nelements && ((double)hash->nelements >= (0.5*KMP_DEPHASH_SIZE(hash->size))))
#if LIBOMP_USE_PARALLEL_SPAWN #if LIBOMP_USE_PARALLEL_SPAWN
...@@ -736,17 +735,20 @@ static bool __kmp_check_deps(kmp_int32 gtid, kmp_depnode_t *node, ...@@ -736,17 +735,20 @@ static bool __kmp_check_deps(kmp_int32 gtid, kmp_depnode_t *node,
while (hash->nconflicts && ((double)hash->nconflicts >= (0.1*hash->nelements))) while (hash->nconflicts && ((double)hash->nconflicts >= (0.1*hash->nelements)))
{ {
{ {
#if 0
printf("#conflict== %i, #nelts==%i, #size==%i conflict==(%8.2f%)\n", hash->nconflicts, hash->nelements, KMP_DEPHASH_SIZE(hash->size), 100*(double)hash->nconflicts / (double)hash->nelements); printf("#conflict== %i, #nelts==%i, #size==%i conflict==(%8.2f%)\n", hash->nconflicts, hash->nelements, KMP_DEPHASH_SIZE(hash->size), 100*(double)hash->nconflicts / (double)hash->nelements);
#endif
size_t oldsize = hash->size; size_t oldsize = hash->size;
__kmp_dephash_resize( thread, hash ); __kmp_dephash_resize( thread, hash );
#if 0
printf("-- resize hash map: %i -> %i\n", KMP_DEPHASH_SIZE(oldsize), KMP_DEPHASH_SIZE(hash->size)); printf("-- resize hash map: %i -> %i\n", KMP_DEPHASH_SIZE(oldsize), KMP_DEPHASH_SIZE(hash->size));
printf("#conflict== %i, #nelts==%i, #size==%i conflict==(%8.2f%)\n", hash->nconflicts, hash->nelements, KMP_DEPHASH_SIZE(hash->size), 100*(double)hash->nconflicts / (double)hash->nelements); printf("#conflict== %i, #nelts==%i, #size==%i conflict==(%8.2f%)\n", hash->nconflicts, hash->nelements, KMP_DEPHASH_SIZE(hash->size), 100*(double)hash->nconflicts / (double)hash->nelements);
#endif
} }
} }
#if LIBOMP_USE_PARALLEL_SPAWN #if LIBOMP_USE_PARALLEL_SPAWN
__kmp_release_lock(&thread->th.th_team->t.t_single_lock, gtid); __kmp_release_lock(&thread->th.th_team->t.t_single_lock, gtid);
#endif #endif
#endif
#endif #endif
node->dn.task = task; node->dn.task = task;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment