MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / TEST

Function TEST

test/cpp/fluid/platform/init_phi_test.cc:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include "paddle/phi/common/memory_utils.h"
19
20TEST(InitPhi, InitPhi) {
21 phi::MemoryUtils::Instance().CheckMemoryMethod();
22 phi::MemoryUtils::Instance().InitDevices();
23 ASSERT_EQ(phi::DeviceContextPool::IsInitialized(), true);
24}
25
26int main(int argc, char** argv) {
27 ::testing::InitGoogleTest(&argc, argv);

Callers

nothing calls this directly

Calls 3

InstanceFunction · 0.85
CheckMemoryMethodMethod · 0.80
InitDevicesMethod · 0.80

Tested by

no test coverage detected