[flang-commits] [flang] [flang][cuda] Use async id for device stream allocation (PR #118733)
via flang-commits
flang-commits at lists.llvm.org
Wed Dec 4 18:32:13 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 7d1c661381d36018fd105f4ad4c2d6dc45e7288b 2a61f51c863e9460c9968be101f04b228bdff3e7 --extensions h,cpp -- flang/include/flang/Runtime/CUDA/allocator.h flang/runtime/CUDA/allocator.cpp flang/unittests/Runtime/CUDA/AllocatorCUF.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/unittests/Runtime/CUDA/AllocatorCUF.cpp b/flang/unittests/Runtime/CUDA/AllocatorCUF.cpp
index 848093939d..6ea842e775 100644
--- a/flang/unittests/Runtime/CUDA/AllocatorCUF.cpp
+++ b/flang/unittests/Runtime/CUDA/AllocatorCUF.cpp
@@ -53,8 +53,7 @@ TEST(AllocatableCUFTest, SimpleStreamDeviceAllocate) {
EXPECT_FALSE(a->HasAddendum());
RTNAME(AllocatableSetBounds)(*a, 0, 1, 10);
RTNAME(AllocatableAllocate)
- (*a, 1, /*hasStat=*/false, /*errMsg=*/nullptr, __FILE__,
- __LINE__);
+ (*a, 1, /*hasStat=*/false, /*errMsg=*/nullptr, __FILE__, __LINE__);
EXPECT_TRUE(a->IsAllocated());
RTNAME(AllocatableDeallocate)
(*a, /*hasStat=*/false, /*errMsg=*/nullptr, __FILE__, __LINE__);
``````````
</details>
https://github.com/llvm/llvm-project/pull/118733
More information about the flang-commits
mailing list