Skip to content

Commit 4260326

Browse files
committed
Remove more
1 parent a4a1e94 commit 4260326

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

flang-rt/lib/cuda/descriptor.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,6 @@ void RTDEF(CUFDescriptorCheckSection)(
6262
}
6363
}
6464

65-
void RTDEF(CUFSetAllocatorIndex)(
66-
Descriptor *desc, int index, const char *sourceFile, int sourceLine) {
67-
if (!desc) {
68-
Terminator terminator{sourceFile, sourceLine};
69-
terminator.Crash("descriptor is null");
70-
}
71-
desc->SetAllocIdx(index);
72-
}
73-
7465
RT_EXT_API_GROUP_END
7566
}
7667
} // namespace Fortran::runtime::cuda

flang-rt/unittests/Runtime/CUDA/AllocatorCUF.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,3 @@ TEST(AllocatableCUFTest, DescriptorAllocationTest) {
7272
EXPECT_TRUE(desc != nullptr);
7373
RTNAME(CUFFreeDescriptor)(desc);
7474
}
75-
76-
TEST(AllocatableCUFTest, CUFSetAllocatorIndex) {
77-
using Fortran::common::TypeCategory;
78-
RTNAME(CUFRegisterAllocator)();
79-
// REAL(4), DEVICE, ALLOCATABLE :: a(:)
80-
auto a{createAllocatable(TypeCategory::Real, 4)};
81-
EXPECT_EQ((int)kDefaultAllocator, a->GetAllocIdx());
82-
RTNAME(CUFSetAllocatorIndex)(
83-
a.get(), kDeviceAllocatorPos, __FILE__, __LINE__);
84-
EXPECT_EQ((int)kDeviceAllocatorPos, a->GetAllocIdx());
85-
}

0 commit comments

Comments
 (0)