[flang-commits] [flang] [flang][cuda] Update device descriptor on data transfer (PR #114838)

via flang-commits flang-commits at lists.llvm.org
Mon Nov 4 09:36:47 PST 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 f54cdc5d6ee5532da117f2489c105148c94dcb39 28325e6d7d59c16f99e9077d76b93ea76735e5d2 --extensions cpp,h -- flang/include/flang/Runtime/CUDA/memory.h flang/lib/Optimizer/Transforms/CUFOpConversion.cpp flang/runtime/CUDA/memory.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/flang/runtime/CUDA/memory.cpp b/flang/runtime/CUDA/memory.cpp
index d8b79e9b88..be5f2d822d 100644
--- a/flang/runtime/CUDA/memory.cpp
+++ b/flang/runtime/CUDA/memory.cpp
@@ -128,8 +128,8 @@ void RTDECL(CUFDataTransferDescDesc)(Descriptor *dstDesc, Descriptor *srcDesc,
 void RTDECL(CUFDataTransferGlobalDescDesc)(Descriptor *dstDesc,
     Descriptor *srcDesc, unsigned mode, const char *sourceFile,
     int sourceLine) {
-  RTNAME(CUFDataTransferDescDesc)(
-      dstDesc, srcDesc, mode, sourceFile, sourceLine);
+  RTNAME(CUFDataTransferDescDesc)
+  (dstDesc, srcDesc, mode, sourceFile, sourceLine);
   if ((mode == kHostToDevice) || (mode == kDeviceToDevice)) {
     void *deviceAddr{
         RTNAME(CUFGetDeviceAddress)((void *)dstDesc, sourceFile, sourceLine)};

``````````

</details>


https://github.com/llvm/llvm-project/pull/114838


More information about the flang-commits mailing list