[flang-commits] [flang] [flang][cuda] Data transfer with descriptor (PR #114598)

via flang-commits flang-commits at lists.llvm.org
Fri Nov 1 12:39:20 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 88a0a318e80565fef9367728b878641d261acfb6 0ec816899e28aa901b850da5618619de89eaf289 --extensions cpp -- flang/runtime/CUDA/memory.cpp flang/unittests/Runtime/CUDA/Memory.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/unittests/Runtime/CUDA/Memory.cpp b/flang/unittests/Runtime/CUDA/Memory.cpp
index 3492b72aac..7c8b7aa5a4 100644
--- a/flang/unittests/Runtime/CUDA/Memory.cpp
+++ b/flang/unittests/Runtime/CUDA/Memory.cpp
@@ -57,7 +57,8 @@ TEST(MemoryCUFTest, CUFDataTransferDescDesc) {
   // Create temp array to transfer to device.
   auto x{MakeArray<TypeCategory::Integer, 4>(std::vector<int>{10},
       std::vector<int32_t>{0, 1, 2, 3, 4, 5, 6, 7, 8, 9})};
-  RTNAME(CUFDataTransferDescDesc)(dev.get(), x.get(), kHostToDevice, __FILE__, __LINE__);
+  RTNAME(CUFDataTransferDescDesc)
+  (dev.get(), x.get(), kHostToDevice, __FILE__, __LINE__);
 
   // Retrieve data from device.
   auto host{MakeArray<TypeCategory::Integer, 4>(std::vector<int>{10},

``````````

</details>


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


More information about the flang-commits mailing list