[Openmp-commits] [openmp] [OpenMP] Sync the team task for serialized parallel. (PR #85600)
via Openmp-commits
openmp-commits at lists.llvm.org
Sun Mar 17 21:53:32 PDT 2024
https://github.com/lwshanbd created https://github.com/llvm/llvm-project/pull/85600
Bug fix #81488
>From 34456f0b7cdd45e90587b25830e103ea4e6b339a Mon Sep 17 00:00:00 2001
From: Baodi Shan <lwshanbd at gmail.com>
Date: Mon, 18 Mar 2024 00:46:38 -0400
Subject: [PATCH] [OpenMP] Sync the team task for serialized parallel.
---
openmp/runtime/src/kmp_barrier.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openmp/runtime/src/kmp_barrier.cpp b/openmp/runtime/src/kmp_barrier.cpp
index e9ab15f1723b66..aa4b9aab43340a 100644
--- a/openmp/runtime/src/kmp_barrier.cpp
+++ b/openmp/runtime/src/kmp_barrier.cpp
@@ -2043,7 +2043,7 @@ static int __kmp_barrier_template(enum barrier_type bt, int gtid, int is_split,
TRUE);
__kmp_task_team_wait(this_thr, team USE_ITT_BUILD_ARG(itt_sync_obj));
__kmp_task_team_setup(this_thr, team, 0);
-
+ __kmp_task_team_sync(this_thr, team);
#if USE_ITT_BUILD
if (__itt_sync_create_ptr || KMP_ITT_DEBUG)
__kmp_itt_barrier_finished(gtid, itt_sync_obj);
More information about the Openmp-commits
mailing list