[Openmp-commits] [llvm] [openmp] [OpenMP][OMPX] Add ballot_sync (PR #91297)

via Openmp-commits openmp-commits at lists.llvm.org
Mon May 6 21:21:25 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 02ce8227ac28e0b83cf780716ae8f912d076eebe 9d3208299bd7a5af0a5fe5fc20f96191d6810ae7 -- offload/test/offloading/ompx_bare_ballot_sync.c 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_ballot_sync.c b/offload/test/offloading/ompx_bare_ballot_sync.c
index 0bd6355d9e..4835fd8f2d 100644
--- a/offload/test/offloading/ompx_bare_ballot_sync.c
+++ b/offload/test/offloading/ompx_bare_ballot_sync.c
@@ -21,7 +21,8 @@ int main(int argc, char *argv[]) {
   for (int i = 0; i < N; ++i)
     data[i] = i & 0x1;
 
-#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();
     unsigned mask = ompx_ballot_sync(0xffffffff, data[tid]);

``````````

</details>


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


More information about the Openmp-commits mailing list