From 14fa967e4698c43ff1e993b44b664970541fff35 Mon Sep 17 00:00:00 2001 From: slaren Date: Fri, 1 Nov 2024 23:14:20 +0100 Subject: [PATCH] minor --- ggml/include/ggml-cpp.h | 9 +++++---- ggml/src/CMakeLists.txt | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ggml/include/ggml-cpp.h b/ggml/include/ggml-cpp.h index 45af74d40..219361af4 100644 --- a/ggml/include/ggml-cpp.h +++ b/ggml/include/ggml-cpp.h @@ -1,15 +1,16 @@ #pragma once -#include "ggml.h" -#include "ggml-alloc.h" -#include "ggml-backend.h" - #ifndef __cplusplus #error "This header is for C++ only" #endif +#include "ggml.h" +#include "ggml-alloc.h" +#include "ggml-backend.h" #include +// Smart pointers for ggml types + // ggml struct ggml_context_deleter { void operator()(ggml_context * ctx) { ggml_free(ctx); } }; diff --git a/ggml/src/CMakeLists.txt b/ggml/src/CMakeLists.txt index 915568798..c9b685cab 100644 --- a/ggml/src/CMakeLists.txt +++ b/ggml/src/CMakeLists.txt @@ -1368,6 +1368,7 @@ add_library(ggml ../include/ggml.h ../include/ggml-alloc.h ../include/ggml-backend.h + ../include/ggml-cpp.h ggml.c ggml-alloc.c ggml-backend.cpp