Skip to content

Commit 96e09b9

Browse files
committed
Make ggml-common.h private
1 parent 1115d2f commit 96e09b9

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

ggml/include/ggml-cann.h

-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222

2323
#pragma once
2424

25-
#define GGML_COMMON_DECL_C
26-
27-
#include "../src/ggml-common.h"
2825
#include "ggml-backend.h"
2926
#include "ggml.h"
3027

ggml/src/ggml-cann.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
#include "ggml-cann/aclnn_ops.h"
3434
#include "ggml-cann/common.h"
3535

36+
#define GGML_COMMON_DECL_C
37+
38+
#include "ggml-common.h"
39+
3640
/**
3741
* @brief Handles CANN errors by printing an error message and aborting.
3842
*

ggml/src/ggml-cann/aclnn_ops.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555

5656
#include "kernels/ascendc_kernels.h"
5757

58+
#define GGML_COMMON_DECL_C
59+
60+
#include "../ggml-common.h"
61+
5862
/**
5963
* @brief Repeats elements of a tensor along each dimension according to the
6064
* specified repeat array.

0 commit comments

Comments
 (0)