We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e89bde commit 14fa967Copy full SHA for 14fa967
ggml/include/ggml-cpp.h
@@ -1,15 +1,16 @@
1
#pragma once
2
3
-#include "ggml.h"
4
-#include "ggml-alloc.h"
5
-#include "ggml-backend.h"
6
-
7
#ifndef __cplusplus
8
#error "This header is for C++ only"
9
#endif
10
+#include "ggml.h"
+#include "ggml-alloc.h"
+#include "ggml-backend.h"
11
#include <memory>
12
+// Smart pointers for ggml types
13
+
14
// ggml
15
16
struct ggml_context_deleter { void operator()(ggml_context * ctx) { ggml_free(ctx); } };
ggml/src/CMakeLists.txt
@@ -1368,6 +1368,7 @@ add_library(ggml
1368
../include/ggml.h
1369
../include/ggml-alloc.h
1370
../include/ggml-backend.h
1371
+ ../include/ggml-cpp.h
1372
ggml.c
1373
ggml-alloc.c
1374
ggml-backend.cpp
0 commit comments