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-virtgpu / backend / backend-dispatched.h

27 lines · 640 bytes Raw Blame History
1#pragma once
2
3// clang-format off
4#include <cstdint>
5#include <cstddef>
6
7#include <ggml-backend.h>
8
9#include "backend-convert.h"
10#include "backend-virgl-apir.h"
11#include "shared/apir_backend.h"
12#include "shared/apir_cs.h"
13#include "shared/apir_cs_ggml.h"
14// clang-format on
15
16#define GGML_VIRTGPU_BCK "ggml-virtgpu-backend: "
17
18struct virgl_apir_context {
19 uint32_t ctx_id;
20 virgl_apir_callbacks * iface;
21};
22
23typedef uint32_t (*backend_dispatch_t)(apir_encoder * enc, apir_decoder * dec, virgl_apir_context * ctx);
24
25#include "backend-dispatched.gen.h"
26
27uint32_t backend_dispatch_initialize(void * ggml_backend_reg_fct_p);