| 357 | } |
| 358 | |
| 359 | int 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 | |
| 378 | void CPURuntime::onGabageCollect(int level) { |
| 379 | mStaticAllocator->release(false); |
nothing calls this directly
no test coverage detected