ggml
[Ported from github.com/ggml-org/ggml] docs : sync ggml_type enum in gguf.md (#1685)
Brought by drakestapleton
ggml / src / ggml-et / ggml-et-memops.h
| 1 | #pragma once |
| 2 | |
| 3 | #include "ggml-et-common.h" |
| 4 | |
| 5 | #include <cstddef> |
| 6 | #include <cstdint> |
| 7 | |
| 8 | // Memory operations using device kernel (memops.elf) |
| 9 | // Single kernel handles multiple operations via operation identifier |
| 10 | |
| 11 | // Operation identifiers for memops kernel |
| 12 | enum ggml_et_memop_type : uint32_t { |
| 13 | GGML_ET_MEMOP_MEMSET = 0, |
| 14 | }; |
| 15 | |
| 16 | // Memset operation: fill device memory with a value |
| 17 | // Returns true on success, false on failure |
| 18 | bool ggml_et_memset(ggml_backend_et_device_context * dev_ctx, void * dst_ptr, uint8_t value, size_t size); |