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 c,cpp --
offload/test/offloading/target-no-loop.c
clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/openmp-target-fast-flag.c --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/offload/test/offloading/target-no-loop.c
b/offload/test/offloading/target-no-loop.c
index 74ef18f60..946cc92d6 100644
--- a/offload/test/offloading/target-no-loop.c
+++ b/offload/test/offloading/target-no-loop.c
@@ -1,9 +1,10 @@
// C counterpart of fortran/target-no-loop.f90.
-// RUN: %libomptarget-compile-generic -O3
-fopenmp-assume-threads-oversubscription -fopenmp-assume-teams-oversubscription
-// RUN: env LIBOMPTARGET_INFO=16 OMP_NUM_TEAMS=16 OMP_TEAMS_THREAD_LIMIT=16
%libomptarget-run-generic 2>&1 | %fcheck-generic
-// REQUIRES: gpu
-// XFAIL: intelgpu
+// RUN: %libomptarget-compile-generic -O3
+// -fopenmp-assume-threads-oversubscription
+// -fopenmp-assume-teams-oversubscription RUN: env LIBOMPTARGET_INFO=16
+// OMP_NUM_TEAMS=16 OMP_TEAMS_THREAD_LIMIT=16 %libomptarget-run-generic 2>&1 |
+// %fcheck-generic REQUIRES: gpu XFAIL: intelgpu
#include <stdio.h>
@@ -76,16 +77,15 @@ int main(void) {
return 0;
}
-// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}}
SPMD-No-Loop mode
-// CHECK: info: #Args: 2 Teams x Thrds: 64x 16
-// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}}
SPMD mode
+// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}}
+// SPMD-No-Loop mode CHECK: info: #Args: 2 Teams x Thrds: 64x 16 CHECK:
+// PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}} SPMD mode
// CHECK: info: #Args: 2 Teams x Thrds: 3x 16 {{.*}}
-// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}}
SPMD-No-Loop mode
-// CHECK: info: #Args: 2 Teams x Thrds: 64x 16 {{.*}}
-// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}}
SPMD mode
-// CHECK: info: #Args: 2 Teams x Thrds: 1x 16
-// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}}
Generic-SPMD mode
-// CHECK: info: #Args: 2 Teams x Thrds: 16x 16 {{.*}}
-// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}}
SPMD mode
-// CHECK: info: #Args: 3 Teams x Thrds: 16x 16 {{.*}}
-// CHECK: number of errors: 0
+// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}}
+// SPMD-No-Loop mode CHECK: info: #Args: 2 Teams x Thrds: 64x 16 {{.*}}
+// CHECK: PluginInterface device {{[0-9]+}} info: Launching kernel {{.*}} SPMD
+// mode CHECK: info: #Args: 2 Teams x Thrds: 1x 16 CHECK: PluginInterface
+// device {{[0-9]+}} info: Launching kernel {{.*}} Generic-SPMD mode CHECK:
+// info: #Args: 2 Teams x Thrds: 16x 16 {{.*}} CHECK: PluginInterface
device
+// {{[0-9]+}} info: Launching kernel {{.*}} SPMD mode CHECK: info: #Args: 3
+// Teams x Thrds: 16x 16 {{.*}} CHECK: number of errors: 0
``````````
</details>
https://github.com/llvm/llvm-project/pull/205325
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits