diff options
Diffstat (limited to 'parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp')
-rw-r--r-- | parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp b/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp index 08f870d00ba..5b16c3c865c 100644 --- a/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp +++ b/parallel-libs/streamexecutor/lib/unittests/DeviceTest.cpp @@ -74,6 +74,10 @@ public: using llvm::ArrayRef; using llvm::MutableArrayRef; +TEST_F(DeviceTest, GetName) { + EXPECT_EQ(Device.getName(), "SimpleHostPlatformDevice"); +} + TEST_F(DeviceTest, AllocateAndFreeDeviceMemory) { se::Expected<se::GlobalDeviceMemory<int>> MaybeMemory = Device.allocateDeviceMemory<int>(10); |