[llvm] [OpenMP][OMPX] Fix ompx_ballot_sync test (PR #94140)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 1 22:03:47 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 4ac902da4febbbf3883d55f5784e57d3b72d332a -- offload/test/offloading/ompx_bare_ballot_sync.c
``````````
</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 00d8ac9d91..9a3eceb09d 100644
--- a/offload/test/offloading/ompx_bare_ballot_sync.c
+++ b/offload/test/offloading/ompx_bare_ballot_sync.c
@@ -19,8 +19,8 @@ int main(int argc, char *argv[]) {
const int N = num_blocks * block_size;
int *res = (int *)malloc(N * sizeof(int));
-#pragma omp target teams ompx_bare num_teams(num_blocks) thread_limit(block_size) \
- map(from: res[0:N])
+#pragma omp target teams ompx_bare num_teams(num_blocks) \
+ thread_limit(block_size) map(from : res[0 : N])
{
int tid = ompx_thread_id_x();
uint64_t mask = ompx_ballot_sync(~0LU, tid & 0x1);
``````````
</details>
https://github.com/llvm/llvm-project/pull/94140
More information about the llvm-commits
mailing list