[llvm-branch-commits] [flang] [flang][cuda] Data transfer with descriptor (PR #114302)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Oct 30 13:56:48 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 a1f81d24c44da15071196faa9e8d466bcbbd7e97 e4c7e31c77bbfda563e4e2c9b591fe2f5cb2c259 --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 ade05e21b7..3765fbbb7b 100644
--- a/flang/unittests/Runtime/CUDA/Memory.cpp
+++ b/flang/unittests/Runtime/CUDA/Memory.cpp
@@ -62,8 +62,8 @@ TEST(MemoryCUFTest, CUFDataTransferDescDesc) {
// Retrieve data from device.
auto host{MakeArray<TypeCategory::Integer, 4>(std::vector<int>{10},
std::vector<int32_t>{0, 0, 0, 0, 0, 0, 0, 0, 0, 0})};
- RTNAME(CUFDataTransferDescDesc)(
- *host, *dev, kDeviceToHost, __FILE__, __LINE__);
+ RTNAME(CUFDataTransferDescDesc)
+ (*host, *dev, kDeviceToHost, __FILE__, __LINE__);
for (unsigned i = 0; i < 10; ++i) {
EXPECT_EQ(*host->ZeroBasedIndexedElement<std::int32_t>(i), (std::int32_t)i);
``````````
</details>
https://github.com/llvm/llvm-project/pull/114302
More information about the llvm-branch-commits
mailing list