[Openmp-commits] [openmp] [OpenMP][Runtime] OpenMP 6.0 Device-Scope Environment Variables (PR #197191)
via Openmp-commits
openmp-commits at lists.llvm.org
Mon May 25 09:14:09 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 h,cpp,c -- openmp/runtime/src/kmp_device_env.cpp openmp/runtime/src/kmp_device_env.h openmp/runtime/test/env/omp_default_device_all_rejected.c openmp/runtime/test/env/omp_denylist_extra_coverage.c openmp/runtime/test/env/omp_num_threads_all_demo.c openmp/runtime/test/env/omp_num_threads_all_host.c openmp/runtime/test/env/omp_num_threads_all_set_defaults.c openmp/runtime/test/env/omp_num_threads_dev_all_fallback.c openmp/runtime/test/env/omp_num_threads_dev_invalid.c openmp/runtime/test/env/omp_num_threads_dev_overflow.c openmp/runtime/test/env/omp_num_threads_dev_resolve.c openmp/runtime/test/env/omp_num_threads_host_overrides_all.c openmp/runtime/test/env/omp_num_threads_warnings_off.c openmp/runtime/src/kmp_runtime.cpp openmp/runtime/src/kmp_settings.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/openmp/runtime/test/env/omp_default_device_all_rejected.c b/openmp/runtime/test/env/omp_default_device_all_rejected.c
index 3d869ff5b..977afc5c9 100644
--- a/openmp/runtime/test/env/omp_default_device_all_rejected.c
+++ b/openmp/runtime/test/env/omp_default_device_all_rejected.c
@@ -1,5 +1,6 @@
// RUN: %libomp-compile
-// RUN: env KMP_WARNINGS=1 OMP_DEFAULT_DEVICE_ALL=2 %libomp-run 2>&1 | FileCheck %s
+// RUN: env KMP_WARNINGS=1 OMP_DEFAULT_DEVICE_ALL=2 %libomp-run 2>&1 | FileCheck
+// %s
//
// Suffix on global-scope base must be rejected with a warning AND not
// reach the ICV.
diff --git a/openmp/runtime/test/env/omp_num_threads_all_demo.c b/openmp/runtime/test/env/omp_num_threads_all_demo.c
index fd3e9aacb..451f0fd2f 100644
--- a/openmp/runtime/test/env/omp_num_threads_all_demo.c
+++ b/openmp/runtime/test/env/omp_num_threads_all_demo.c
@@ -1,5 +1,6 @@
// RUN: %libomp-compile
-// RUN: env OMP_NUM_THREADS_ALL=8 OMP_NUM_THREADS_DEV_0=128 %libomp-run | FileCheck %s
+// RUN: env OMP_NUM_THREADS_ALL=8 OMP_NUM_THREADS_DEV_0=128 %libomp-run |
+// FileCheck %s
//
// Demo: host=8 (_ALL), device 0=128 (_DEV_0), other devices=8 (_ALL fallback).
``````````
</details>
https://github.com/llvm/llvm-project/pull/197191
More information about the Openmp-commits
mailing list