MCPcopy Create free account
hub / github.com/alibaba/MNN / onGetRuntimeStatus

Method onGetRuntimeStatus

source/backend/cpu/CPUBackend.cpp:359–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359int CPURuntime::onGetRuntimeStatus(RuntimeStatus statusEnum) const {
360 switch (statusEnum) {
361 case STATUS_SUPPORT_FP16: {
362 return MNNGetCoreFunctions()->supportFp16arith;
363 break;
364 }
365 case STATUS_SUPPORT_DOT_PRODUCT: {
366 return MNNGetCoreFunctions()->supportSDot;
367 break;
368 }
369 default: {
370 MNN_ERROR("unsupported interface");
371 break;
372 }
373 }
374
375 return 0;
376}
377
378void CPURuntime::onGabageCollect(int level) {
379 mStaticAllocator->release(false);

Callers

nothing calls this directly

Calls 1

MNNGetCoreFunctionsFunction · 0.85

Tested by

no test coverage detected