Skip to content

Commit 0ec8168

Browse files
committed
clang-format
1 parent 677ef06 commit 0ec8168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/unittests/Runtime/CUDA/Memory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ TEST(MemoryCUFTest, CUFDataTransferDescDesc) {
5757
// Create temp array to transfer to device.
5858
auto x{MakeArray<TypeCategory::Integer, 4>(std::vector<int>{10},
5959
std::vector<int32_t>{0, 1, 2, 3, 4, 5, 6, 7, 8, 9})};
60-
RTNAME(CUFDataTransferDescDesc)(*dev, *x, kHostToDevice, __FILE__, __LINE__);
60+
RTNAME(CUFDataTransferDescDesc)(dev.get(), x.get(), kHostToDevice, __FILE__, __LINE__);
6161

6262
// Retrieve data from device.
6363
auto host{MakeArray<TypeCategory::Integer, 4>(std::vector<int>{10},
6464
std::vector<int32_t>{0, 0, 0, 0, 0, 0, 0, 0, 0, 0})};
6565
RTNAME(CUFDataTransferDescDesc)
66-
(*host, *dev, kDeviceToHost, __FILE__, __LINE__);
66+
(host.get(), dev.get(), kDeviceToHost, __FILE__, __LINE__);
6767

6868
for (unsigned i = 0; i < 10; ++i) {
6969
EXPECT_EQ(*host->ZeroBasedIndexedElement<std::int32_t>(i), (std::int32_t)i);

0 commit comments

Comments
 (0)