Download ggml/src/ggml-et/cmake/ggml-et-uberkernel-kernel-map.cpp.in from Brunobkr/llama.cpp_AlgMor24_github: direct link, hf CLI and curl.
- Browser
- Download file 618 Bytes
-
https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/ggml/src/ggml-et/cmake/ggml-et-uberkernel-kernel-map.cpp.in
- Command line
-
hf download hf://datasets/Brunobkr/llama.cpp_AlgMor24_github/ggml/src/ggml-et/cmake/ggml-et-uberkernel-kernel-map.cpp.in
-
curl -L -o ggml-et-uberkernel-kernel-map.cpp.in https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github/resolve/main/ggml/src/ggml-et/cmake/ggml-et-uberkernel-kernel-map.cpp.in
618 Bytes
| // Auto-generated uberkernel kernel-id mapping. Do not edit. | |
| uint16_t ggml_et_uberkernel_kernel_id_from_name(const char * kernel_name) { | |
| if (kernel_name == nullptr) { | |
| return GGML_ET_UBERKERNEL_KERNEL_INVALID; | |
| } | |
| static const std::unordered_map<std::string, uint16_t> kernel_id_map = { | |
| @UBERKERNEL_MAP_ENTRIES@ | |
| }; | |
| auto it = kernel_id_map.find(std::string(kernel_name)); | |
| return it == kernel_id_map.end() ? GGML_ET_UBERKERNEL_KERNEL_INVALID : it->second; | |
| } | |