minor
This commit is contained in:
parent
4e89bdebb0
commit
14fa967e46
2 changed files with 6 additions and 4 deletions
|
@ -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); } };
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue