[Mlir-commits] [clang] [llvm] [mlir] [OpenMP] Reserve the main thread's warp for generic mode kernels (PR #218790)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Aug 25 14:47:21 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions c,cpp -- offload/test/offloading/thread_limit_below_wavefront.c clang/test/OpenMP/amdgcn-attributes.cpp clang/test/OpenMP/amdgcn_target_device_vla.cpp clang/test/OpenMP/nvptx_SPMD_codegen.cpp clang/test/OpenMP/nvptx_target_teams_codegen.cpp clang/test/OpenMP/ompx_attributes_codegen.cpp clang/test/OpenMP/target_num_teams_num_threads_attributes.cpp clang/test/OpenMP/target_teams_reduction_codegen.cpp llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp offload/plugins-nextgen/common/src/RecordReplay.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/offload/test/offloading/thread_limit_below_wavefront.c b/offload/test/offloading/thread_limit_below_wavefront.c
index 32694120c..e9144b4d5 100644
--- a/offload/test/offloading/thread_limit_below_wavefront.c
+++ b/offload/test/offloading/thread_limit_below_wavefront.c
@@ -11,7 +11,7 @@
 int main(void) {
   long count = 0;
 
-#pragma omp target teams distribute num_teams(5) thread_limit(4)                \
+#pragma omp target teams distribute num_teams(5) thread_limit(4)               \
     map(tofrom : count)
   for (int team = 0; team < 5; team++) {
 #pragma omp parallel for

``````````

</details>


https://github.com/llvm/llvm-project/pull/218790


More information about the Mlir-commits mailing list