[Openmp-commits] [openmp] [OpenMP] Rename worker threads for improved debuggability (PR #102065)
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Aug 6 13:39:45 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 248c53429427034f45705af60d47f3b1090c4799 fe3bf2df926c90afe6bc9b2aa7253c63bee89771 --extensions cpp -- openmp/runtime/src/z_Linux_util.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/runtime/src/z_Linux_util.cpp b/openmp/runtime/src/z_Linux_util.cpp
index 91d97372ff..85d62e2e26 100644
--- a/openmp/runtime/src/z_Linux_util.cpp
+++ b/openmp/runtime/src/z_Linux_util.cpp
@@ -879,12 +879,12 @@ void __kmp_create_worker(int gtid, kmp_info_t *th, size_t stack_size) {
}
#ifdef _GNU_SOURCE
- #if ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12)))
+#if ((__GLIBC__ > 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12)))
// Rename worker threads for improved debuggability
if (!KMP_UBER_GTID(gtid)) {
pthread_setname_np(handle, "openmp_worker");
}
- #endif
+#endif
#endif
th->th.th_info.ds.ds_thread = handle;
``````````
</details>
https://github.com/llvm/llvm-project/pull/102065
More information about the Openmp-commits
mailing list