[Openmp-commits] [openmp] [OMPT] Use __tsan_init to detect TSan binaries rather than RunningOnValgrind (PR #128357)
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Feb 25 12:06:02 PST 2025
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 f1025e671ef1c1d6a65944cdb3989608cfbc7f0c 109f46c3e568db2f59f76edecc341186fb41e578 --extensions cpp -- openmp/tools/archer/ompt-tsan.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/tools/archer/ompt-tsan.cpp b/openmp/tools/archer/ompt-tsan.cpp
index ca5fe7b9ed..bb60fc6b60 100644
--- a/openmp/tools/archer/ompt-tsan.cpp
+++ b/openmp/tools/archer/ompt-tsan.cpp
@@ -1257,7 +1257,7 @@ ompt_start_tool(unsigned int omp_version, const char *runtime_version) {
findTsanFunctionSilent(__tsan_init, (void (*)(void)));
if (!__tsan_init) // if we are not running on TSAN, give a different
- // tool the chance to be loaded
+ // tool the chance to be loaded
{
if (archer_flags->verbose)
std::cout << "Archer detected OpenMP application without TSan; "
``````````
</details>
https://github.com/llvm/llvm-project/pull/128357
More information about the Openmp-commits
mailing list