[Openmp-commits] [openmp] Fixing LIBOMPTARGET_INFO message, for Copying data from device to host (PR #85444)
via Openmp-commits
openmp-commits at lists.llvm.org
Fri Mar 15 11:33: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 8f9ee39c58064d3a3291a89509501ebe55d2e788 38b3bfd8d74256c48c8e8070775160d08a174f03 -- openmp/libomptarget/src/OpenMP/Mapping.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/openmp/libomptarget/src/OpenMP/Mapping.cpp b/openmp/libomptarget/src/OpenMP/Mapping.cpp
index 1f784b9b90..6157626f6e 100644
--- a/openmp/libomptarget/src/OpenMP/Mapping.cpp
+++ b/openmp/libomptarget/src/OpenMP/Mapping.cpp
@@ -511,8 +511,8 @@ static void printCopyInfoImpl(int DeviceId, bool H2D, void *SrcPtrBegin,
"Copying data from %s to %s, %sPtr=" DPxMOD ", %sPtr=" DPxMOD
", Size=%" PRId64 ", Name=%s\n",
H2D ? "host" : "device", H2D ? "device" : "host", H2D ? "Hst" : "Tgt",
- DPxPTR(H2D ? SrcPtrBegin:DstPtrBegin), H2D ? "Tgt" : "Hst",
- DPxPTR(H2D ? DstPtrBegin:SrcPtrBegin), Size,
+ DPxPTR(H2D ? SrcPtrBegin : DstPtrBegin), H2D ? "Tgt" : "Hst",
+ DPxPTR(H2D ? DstPtrBegin : SrcPtrBegin), Size,
(HT && HT->HstPtrName) ? getNameFromMapping(HT->HstPtrName).c_str()
: "unknown");
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/85444
More information about the Openmp-commits
mailing list