Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/ggml/blob/master/src/ggml-et/cmake/ggml-et-uberkernel-kernel-map.cpp.in # ggml [Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685) Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `ggml / src / ggml-et / cmake / ggml-et-uberkernel-kernel-map.cpp.in` 18 lines ยท 618 bytes Raw Blame History 1 // Auto-generated uberkernel kernel-id mapping. Do not edit. 2 #include "ggml-et-uberkernel-kernel-map.h" 3 4 #ifdef GGML_ET_UBERKERNEL_HOST_LOOKUP 5 #include 6 #include 7 8 uint16_t ggml_et_uberkernel_kernel_id_from_name(const char * kernel_name) { 9 if (kernel_name == nullptr) { 10 return GGML_ET_UBERKERNEL_KERNEL_INVALID; 11 } 12 static const std::unordered_map kernel_id_map = { 13 @UBERKERNEL_MAP_ENTRIES@ 14 }; 15 auto it = kernel_id_map.find(std::string(kernel_name)); 16 return it == kernel_id_map.end() ? GGML_ET_UBERKERNEL_KERNEL_INVALID : it->second; 17 } 18 #endif