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

Function LITE_get_device_count

lite/lite-c/src/global.cpp:59–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59int LITE_get_device_count(LiteDeviceType device_type, size_t* count) {
60 LITE_CAPI_BEGIN();
61 LITE_ASSERT(count, "The ptr pass to LITE api is null");
62 *count = lite::get_device_count(device_type);
63 LITE_CAPI_END();
64}
65
66int LITE_try_coalesce_all_free_memory() {
67 LITE_CAPI_BEGIN();

Callers

nothing calls this directly

Calls 1

get_device_countFunction · 0.85

Tested by

no test coverage detected