interplane.Get Omega
Read in your language

ggml

[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)

Brought by drakestapleton

branch master Branches Tags History

ggml / src / ggml-hexagon / htp / fill-ops.h

29 lines · 747 bytes Raw Blame History
1#ifndef HTP_FILL_OPS_H
2#define HTP_FILL_OPS_H
3
4#include "hex-fastdiv.h"
5#include <stdint.h>
6
7enum htp_fill_kernel_type {
8 HTP_FILL_KERNEL_CONTIGUOUS = 0,
9 HTP_FILL_KERNEL_STRIDED = 1,
10};
11
12struct htp_fill_kernel_params {
13 uint8_t kernel_type;
14 uint32_t n_threads;
15 uint32_t total_rows;
16 uint32_t elem_size;
17 uint32_t rows_per_chunk;
18
19 struct fastdiv_values div_ne1;
20 struct fastdiv_values div_ne1_ne2;
21};
22
23#if defined(__cplusplus)
24static_assert(sizeof(struct htp_fill_kernel_params) <= 128, "htp_fill_kernel_params is too large for kernel_params blob");
25#else
26_Static_assert(sizeof(struct htp_fill_kernel_params) <= 128, "htp_fill_kernel_params is too large for kernel_params blob");
27#endif
28
29#endif // HTP_FILL_OPS_H