[llvm] [OMP] Add omp.h in test (PR #215882)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 12 13:04:14 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-offload
Author: Kelvin Li (kkwli)
<details>
<summary>Changes</summary>
`omp_get_ancestor_thread_num` and `omp_get_team_size` are only declared in `omp.h`.
Fix build breakage in https://github.com/llvm/llvm-project/pull/215841#issuecomment-5271979382
---
Full diff: https://github.com/llvm/llvm-project/pull/215882.diff
1 Files Affected:
- (modified) offload/test/offloading/ompx_bare_multi_dim.cpp (+1)
``````````diff
diff --git a/offload/test/offloading/ompx_bare_multi_dim.cpp b/offload/test/offloading/ompx_bare_multi_dim.cpp
index aa854114f9914..93a7b3604e411 100644
--- a/offload/test/offloading/ompx_bare_multi_dim.cpp
+++ b/offload/test/offloading/ompx_bare_multi_dim.cpp
@@ -4,6 +4,7 @@
// REQUIRES: gpu
// clang-format on
+#include <omp.h>
#include <ompx.h>
#include <cassert>
``````````
</details>
https://github.com/llvm/llvm-project/pull/215882
More information about the llvm-commits
mailing list