Skip to content

Commit 14fa967

Browse files
committed
minor
1 parent 4e89bde commit 14fa967

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ggml/include/ggml-cpp.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#pragma once
22

3-
#include "ggml.h"
4-
#include "ggml-alloc.h"
5-
#include "ggml-backend.h"
6-
73
#ifndef __cplusplus
84
#error "This header is for C++ only"
95
#endif
106

7+
#include "ggml.h"
8+
#include "ggml-alloc.h"
9+
#include "ggml-backend.h"
1110
#include <memory>
1211

12+
// Smart pointers for ggml types
13+
1314
// ggml
1415

1516
struct ggml_context_deleter { void operator()(ggml_context * ctx) { ggml_free(ctx); } };

ggml/src/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,7 @@ add_library(ggml
13681368
../include/ggml.h
13691369
../include/ggml-alloc.h
13701370
../include/ggml-backend.h
1371+
../include/ggml-cpp.h
13711372
ggml.c
13721373
ggml-alloc.c
13731374
ggml-backend.cpp

0 commit comments

Comments
 (0)