[llvm] [openmp] [OpenMP][OMPX] Add shfl_down_sync (PR #93311)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 08:17:15 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 53b904823cba4e93d58793b0804407f812477724 267ea749058e95b4b5db137f7010641321d5465b -- 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 fecc214176..ac6ce25cc6 100644
--- a/offload/test/offloading/ompx_bare_shfl_down_sync.cpp
+++ b/offload/test/offloading/ompx_bare_shfl_down_sync.cpp
@@ -41,7 +41,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(tofrom : data[0 : N])
+#pragma omp target teams ompx_bare num_teams(num_blocks) \
+ thread_limit(block_size) map(tofrom : data[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/93311
More information about the llvm-commits
mailing list