[Openmp-commits] [llvm] [openmp] Reapply "[OpenMP][OMPX] Add shfl_down_sync (#93311)" (PR #94139)

via Openmp-commits openmp-commits at lists.llvm.org
Sat Jun 1 21:17:24 PDT 2024


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 de37c06f01772e02465ccc9f538894c76d89a7a1 497e3225f216b23a27cd64a2fd952bfbe07f0875 -- offload/test/offloading/ompx_bare_shfl_down_sync.cpp offload/DeviceRTL/include/Utils.h offload/DeviceRTL/src/Mapping.cpp offload/DeviceRTL/src/Utils.cpp
``````````

</details>

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

``````````diff
diff --git a/offload/test/offloading/ompx_bare_shfl_down_sync.cpp b/offload/test/offloading/ompx_bare_shfl_down_sync.cpp
index 4af321ccec..38f6d23a07 100644
--- a/offload/test/offloading/ompx_bare_shfl_down_sync.cpp
+++ b/offload/test/offloading/ompx_bare_shfl_down_sync.cpp
@@ -36,8 +36,8 @@ template <typename T> void test() {
   for (int i = 0; i < N; ++i)
     data[i] = i;
 
-#pragma omp target teams ompx_bare num_teams(num_blocks) thread_limit(block_size) \
-        map(to: data[0:N]) map(from: res[0:N])
+#pragma omp target teams ompx_bare num_teams(num_blocks)                       \
+    thread_limit(block_size) map(to : data[0 : N]) map(from : res[0 : N])
   {
     int tid = ompx_thread_id_x();
     data[tid] = ompx::shfl_down_sync(~0U, data[tid], 1);

``````````

</details>


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


More information about the Openmp-commits mailing list