This commit is contained in:
slaren 2024-11-01 23:14:20 +01:00
parent 4e89bdebb0
commit 14fa967e46
2 changed files with 6 additions and 4 deletions

View file

@ -1,15 +1,16 @@
#pragma once #pragma once
#include "ggml.h"
#include "ggml-alloc.h"
#include "ggml-backend.h"
#ifndef __cplusplus #ifndef __cplusplus
#error "This header is for C++ only" #error "This header is for C++ only"
#endif #endif
#include "ggml.h"
#include "ggml-alloc.h"
#include "ggml-backend.h"
#include <memory> #include <memory>
// Smart pointers for ggml types
// ggml // ggml
struct ggml_context_deleter { void operator()(ggml_context * ctx) { ggml_free(ctx); } }; struct ggml_context_deleter { void operator()(ggml_context * ctx) { ggml_free(ctx); } };

View file

@ -1368,6 +1368,7 @@ add_library(ggml
../include/ggml.h ../include/ggml.h
../include/ggml-alloc.h ../include/ggml-alloc.h
../include/ggml-backend.h ../include/ggml-backend.h
../include/ggml-cpp.h
ggml.c ggml.c
ggml-alloc.c ggml-alloc.c
ggml-backend.cpp ggml-backend.cpp