From c411727c973f1ff26bf94d5533805be5cc71968f Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 20 Nov 2025 05:19:17 -0800 Subject: [PATCH 1/4] [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 Date: Thu, 20 Nov 2025 05:35:56 -0800 Subject: [PATCH 2/4] 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 */ From 1d2f7ea6b370c811f689201a7cacabf6e4131c83 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 20 Nov 2025 07:57:15 -0800 Subject: [PATCH 3/4] Addressed review comments --- openmp/runtime/src/kmp.h | 1 + 1 file changed, 1 insertion(+) diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h index 051c6d87d4231..903232371cd82 100644 --- a/openmp/runtime/src/kmp.h +++ b/openmp/runtime/src/kmp.h @@ -2709,6 +2709,7 @@ typedef struct kmp_tasking_flags { /* Total struct must be exactly 32 bits */ unsigned tasktype : 1; unsigned reserved : 8; unsigned free_agent_eligible : 1; + unsigned transparent : 1; unsigned detachable : 1; unsigned priority_specified : 1; unsigned proxy : 1; From 6ab4fd3c8294ea0bb8ebbab0068f8cb76515da80 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 20 Nov 2025 08:33:34 -0800 Subject: [PATCH 4/4] Addressed review comments --- openmp/runtime/src/kmp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h index 903232371cd82..36c40abaf1ef4 100644 --- a/openmp/runtime/src/kmp.h +++ b/openmp/runtime/src/kmp.h @@ -2707,9 +2707,9 @@ typedef struct kmp_tasking_flags { /* Total struct must be exactly 32 bits */ unsigned tasking_ser : 1; unsigned task_serial : 1; unsigned tasktype : 1; - unsigned reserved : 8; - unsigned free_agent_eligible : 1; + unsigned reserved : 7; unsigned transparent : 1; + unsigned free_agent_eligible : 1; unsigned detachable : 1; unsigned priority_specified : 1; unsigned proxy : 1;