Skip to content

Commit

Permalink
Make ggml-common.h private
Browse files Browse the repository at this point in the history
  • Loading branch information
hipudding committed Jul 17, 2024
1 parent 1115d2f commit 96e09b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ggml/include/ggml-cann.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@

#pragma once

#define GGML_COMMON_DECL_C

#include "../src/ggml-common.h"
#include "ggml-backend.h"
#include "ggml.h"

Expand Down
4 changes: 4 additions & 0 deletions ggml/src/ggml-cann.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
#include "ggml-cann/aclnn_ops.h"
#include "ggml-cann/common.h"

#define GGML_COMMON_DECL_C

#include "ggml-common.h"

/**
* @brief Handles CANN errors by printing an error message and aborting.
*
Expand Down
4 changes: 4 additions & 0 deletions ggml/src/ggml-cann/aclnn_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@

#include "kernels/ascendc_kernels.h"

#define GGML_COMMON_DECL_C

#include "../ggml-common.h"

/**
* @brief Repeats elements of a tensor along each dimension according to the
* specified repeat array.
Expand Down

0 comments on commit 96e09b9

Please sign in to comment.