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-hexagon/htp/roll-ops.h # 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-hexagon / htp / roll-ops.h` 30 lines ยท 781 bytes Raw Blame History 1 #ifndef HTP_ROLL_OPS_H 2 #define HTP_ROLL_OPS_H 3 4 #include "hex-fastdiv.h" 5 #include 6 7 enum htp_roll_kernel_type { 8 HTP_ROLL_KERNEL_DMA_CONTIGUOUS = 1, 9 HTP_ROLL_KERNEL_DMA_STRIDED = 2, 10 HTP_ROLL_KERNEL_HVX = 3, 11 }; 12 13 struct htp_roll_kernel_params { 14 uint8_t kernel_type; 15 uint32_t n_threads; 16 uint32_t total_rows; 17 uint32_t i0_src0; 18 uint32_t n0; 19 20 struct fastdiv_values div_ne1; 21 struct fastdiv_values div_ne2_ne1; 22 }; 23 24 #if defined(__cplusplus) 25 static_assert(sizeof(struct htp_roll_kernel_params) <= 128, "htp_roll_kernel_params is too large for kernel_params blob"); 26 #else 27 _Static_assert(sizeof(struct htp_roll_kernel_params) <= 128, "htp_roll_kernel_params is too large for kernel_params blob"); 28 #endif 29 30 #endif // HTP_ROLL_OPS_H