[Openmp-commits] [openmp] [OpenMP][libomp] Add transparent task flag bit to kmp_tasking_flags (PR #168873)
Zahira Ammarguellat via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 20 05:36:07 PST 2025
https://github.com/zahiraam updated https://github.com/llvm/llvm-project/pull/168873
>From c411727c973f1ff26bf94d5533805be5cc71968f Mon Sep 17 00:00:00 2001
From: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
Date: Thu, 20 Nov 2025 05:19:17 -0800
Subject: [PATCH 1/2] [OpenMP][libomp] Add transparent task flag bit to
kmp_tasking_flags
---
openmp/runtime/src/kmp.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index 3ffec41a7f679..a55ee2a9a2114 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -2731,7 +2731,8 @@ typedef struct kmp_tasking_flags { /* Total struct must be exactly 32 bits */
unsigned detachable : 1; /* 1 == can detach */
unsigned free_agent_eligible : 1; /* set if task can be executed by a
free-agent thread */
- unsigned reserved : 8; /* reserved for compiler use */
+ unsigned transparent: 1; /* transparent task support (compiler uses this) */
+ unsigned reserved : 7; /* reserved for compiler use */
/* Library flags */ /* Total library flags must be 16 bits */
unsigned tasktype : 1; /* task is either explicit(1) or implicit (0) */
>From cbc8a09ba7d781d543c57525f881fa7fb7cb276e Mon Sep 17 00:00:00 2001
From: Zahira Ammarguellat <zahira.ammarguellat at intel.com>
Date: Thu, 20 Nov 2025 05:35:56 -0800
Subject: [PATCH 2/2] Fix format
---
openmp/runtime/src/kmp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index a55ee2a9a2114..051c6d87d4231 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -2731,7 +2731,7 @@ typedef struct kmp_tasking_flags { /* Total struct must be exactly 32 bits */
unsigned detachable : 1; /* 1 == can detach */
unsigned free_agent_eligible : 1; /* set if task can be executed by a
free-agent thread */
- unsigned transparent: 1; /* transparent task support (compiler uses this) */
+ unsigned transparent : 1; /* transparent task support (compiler uses this) */
unsigned reserved : 7; /* reserved for compiler use */
/* Library flags */ /* Total library flags must be 16 bits */
More information about the Openmp-commits
mailing list