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

Method activate

src/core/include/megbrain/comp_node_env.h:515–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

513 static void init() { init_status.init(); }
514
515 void activate() const {
516 init();
517 MGB_CNRT_CHECK(cnrtSetDevice(device));
518 }
519 };
520
521 const CnrtEnv& cnrt_env() const {

Callers

nothing calls this directly

Calls 1

initFunction · 0.50

Tested by

no test coverage detected