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 / 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 <stdint.h>
6
7enum 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
13struct 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)
25static_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