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

Method get_device_count

lite/src/global.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48size_t lite::get_device_count(LiteDeviceType device_type) {
49#if LITE_BUILD_WITH_MGE
50 auto mgb_device_type = to_compnode_locator(device_type).type;
51 return mgb::CompNode::get_device_count(mgb_device_type);
52#else
53 LITE_MARK_USED_VAR(device_type);
54 LITE_THROW("no lite backend avialible, please check build macro.");
55#endif
56}
57
58bool lite::register_decryption_and_key(
59 std::string decrypt_name, const DecryptionFunc& func,

Callers

nothing calls this directly

Calls 1

get_device_countFunction · 0.85

Tested by

no test coverage detected