MCPcopy Create free account
hub / github.com/MegEngine/MegCC / MegCC_Device_name

Function MegCC_Device_name

runtime/src/cheader/model_reader.h:459–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457#define MegCC_Device_OPENCL_MALI ((MegCC_Device_enum_t)INT8_C(5))
458
459static inline const char *MegCC_Device_name(MegCC_Device_enum_t value)
460{
461 switch (value) {
462 case MegCC_Device_BARE_METAL: return "BARE_METAL";
463 case MegCC_Device_ARM64: return "ARM64";
464 case MegCC_Device_ARM32: return "ARM32";
465 case MegCC_Device_ARM64_V82: return "ARM64_V82";
466 case MegCC_Device_ARM32_V82: return "ARM32_V82";
467 case MegCC_Device_OPENCL_MALI: return "OPENCL_MALI";
468 default: return "";
469 }
470}
471
472static inline int MegCC_Device_is_known_value(MegCC_Device_enum_t value)
473{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected