MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / SetUp

Method SetUp

dnn/test/atlas/fixture.cpp:17–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15using namespace test;
16
17void ATLAS::SetUp() {
18 RandomState::reset();
19
20 // use card 0
21 megcore_check(megcoreCreateDeviceHandle(&m_dev_handle, megcorePlatformAtlas, 0));
22
23 megcoreActivate(m_dev_handle);
24 megcoreComputingHandle_t comp_handle;
25 megcore_check(megcoreCreateComputingHandle(&comp_handle, m_dev_handle));
26 m_handle_atlas = Handle::make(comp_handle);
27 megdnn_assert(m_handle_atlas);
28}
29
30Handle* ATLAS::handle_naive() {
31 if (!m_handle_naive)

Callers

nothing calls this directly

Calls 4

megcoreActivateFunction · 0.85
makeFunction · 0.50

Tested by

no test coverage detected