[Openmp-commits] [llvm] [openmp] [Offload] Allow to record kernel launch stack traces (PR #100472)
via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jul 24 14:38:41 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 d0c8e268c1ed9bbbd07be0efd93a91737c7bb1fe 6444ee5b860ae0518af4f7f547cebf484968c6bf --extensions c,h,cpp -- offload/plugins-nextgen/common/include/ErrorReporting.h offload/test/sanitizer/double_free.c offload/test/sanitizer/free_host_ptr.c offload/test/sanitizer/free_wrong_ptr_kind.c offload/test/sanitizer/free_wrong_ptr_kind.cpp offload/test/sanitizer/kernel_crash.c offload/test/sanitizer/kernel_crash_async.c offload/test/sanitizer/kernel_crash_many.c offload/test/sanitizer/kernel_crash_single.c offload/test/sanitizer/kernel_trap.c offload/test/sanitizer/kernel_trap_async.c offload/test/sanitizer/kernel_trap_many.c offload/include/Shared/EnvironmentVar.h offload/plugins-nextgen/amdgpu/dynamic_hsa/hsa.h offload/plugins-nextgen/amdgpu/src/rtl.cpp offload/plugins-nextgen/common/include/PluginInterface.h offload/plugins-nextgen/common/src/PluginInterface.cpp offload/src/omptarget.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/offload/test/sanitizer/kernel_crash.c b/offload/test/sanitizer/kernel_crash.c
index 167494e2ea..7273203ed8 100644
--- a/offload/test/sanitizer/kernel_crash.c
+++ b/offload/test/sanitizer/kernel_crash.c
@@ -26,9 +26,7 @@ int main(void) {
#pragma omp target
{}
#pragma omp target
- {
- *A = 42;
- }
+ { *A = 42; }
#pragma omp target
{}
}
diff --git a/offload/test/sanitizer/kernel_crash_async.c b/offload/test/sanitizer/kernel_crash_async.c
index 6823b489e5..eba6c42127 100644
--- a/offload/test/sanitizer/kernel_crash_async.c
+++ b/offload/test/sanitizer/kernel_crash_async.c
@@ -26,9 +26,7 @@ int main(void) {
#pragma omp target nowait
{}
#pragma omp target nowait
- {
- *A = 42;
- }
+ { *A = 42; }
#pragma omp taskwait
}
diff --git a/offload/test/sanitizer/kernel_trap.c b/offload/test/sanitizer/kernel_trap.c
index afa517175b..a34b540d26 100644
--- a/offload/test/sanitizer/kernel_trap.c
+++ b/offload/test/sanitizer/kernel_trap.c
@@ -26,9 +26,7 @@ int main(void) {
#pragma omp target
{}
#pragma omp target
- {
- __builtin_trap();
- }
+ { __builtin_trap(); }
#pragma omp target
{}
}
diff --git a/offload/test/sanitizer/kernel_trap_async.c b/offload/test/sanitizer/kernel_trap_async.c
index 2f37c05208..2ea90d9f94 100644
--- a/offload/test/sanitizer/kernel_trap_async.c
+++ b/offload/test/sanitizer/kernel_trap_async.c
@@ -26,9 +26,7 @@ int main(void) {
#pragma omp target nowait
{}
#pragma omp target nowait
- {
- __builtin_trap();
- }
+ { __builtin_trap(); }
#pragma omp taskwait
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/100472
More information about the Openmp-commits
mailing list