MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/core/common_runtime/gpu/gpu_event_mgr_test.cc:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103namespace {
104
105TEST(EventMgr, Empty) {
106 auto stream_exec = GPUMachineManager()->ExecutorForDevice(0).ValueOrDie();
107 TEST_EventMgr em(stream_exec, GPUOptions());
108 TEST_EventMgrHelper th(&em);
109 EXPECT_EQ(0, th.queue_size());
110 EXPECT_EQ(0, th.free_size());
111}
112
113// Tests that WarnIfInCallback() triggers correctly.
114TEST(EventMgr, WarnIfInCallback) {

Callers

nothing calls this directly

Calls 12

GPUMachineManagerFunction · 0.85
GPUOptionsClass · 0.85
WarnIfInCallbackFunction · 0.85
queue_sizeMethod · 0.80
free_sizeMethod · 0.80
ExecutorForDeviceMethod · 0.45
InitMethod · 0.45
StartPollingLoopMethod · 0.45
ThenExecuteMethod · 0.45
getMethod · 0.45
NotifyMethod · 0.45
WaitForNotificationMethod · 0.45

Tested by

no test coverage detected