From a3e8c895138ec9727c2ec88eed6ee6fc5f841ee5 Mon Sep 17 00:00:00 2001 From: Thierry <thierry.gautier@inrialpes.fr> Date: Wed, 12 Jul 2017 11:09:23 +0200 Subject: [PATCH] [fix] supp printf --- runtime/src/kmp_taskdeps.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/src/kmp_taskdeps.cpp b/runtime/src/kmp_taskdeps.cpp index c657630..3045c60 100644 --- a/runtime/src/kmp_taskdeps.cpp +++ b/runtime/src/kmp_taskdeps.cpp @@ -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, ndeps_noalias, noalias_dep_list, task); -#if 1 #if LIBOMP_USE_DYNHASH //if (hash->nconflicts && hash->nelements && ((double)hash->nelements >= (0.5*KMP_DEPHASH_SIZE(hash->size)))) #if LIBOMP_USE_PARALLEL_SPAWN @@ -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))) { { +#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); +#endif size_t oldsize = hash->size; __kmp_dephash_resize( thread, hash ); +#if 0 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); +#endif } } #if LIBOMP_USE_PARALLEL_SPAWN __kmp_release_lock(&thread->th.th_team->t.t_single_lock, gtid); #endif -#endif #endif node->dn.task = task; -- GitLab