Skip to content

Commit

Permalink
reorganize If statements to include proper headers
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowRoseCx committed Jun 25, 2023
1 parent 06c3bf0 commit abed427
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,11 @@ inline static void* ggml_aligned_malloc(size_t size) {
#endif
#elif defined(GGML_USE_OPENBLAS)
#include <cblas.h>
#elif defined(GGML_USE_CUBLAS) || defined(GGML_USE_HIPBLAS)
#endif
#if defined(GGML_USE_CUBLAS) || defined(GGML_USE_HIPBLAS)
#include "ggml-cuda.h"
#elif defined(GGML_USE_CLBLAST)
#endif
#if defined(GGML_USE_CLBLAST)
#include "ggml-opencl.h"
#endif

Expand Down
5 changes: 4 additions & 1 deletion otherarch/ggml_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,17 @@ inline static void* ggml_v2_aligned_malloc(size_t size) {
#include <Accelerate/Accelerate.h>
#elif defined(GGML_USE_OPENBLAS)
#include <cblas.h>
#elif defined(GGML_USE_CUBLAS) || defined(GGML_USE_HIPBLAS)
#endif
#if defined(GGML_USE_CUBLAS) || defined(GGML_USE_HIPBLAS)
#include "ggml_v2-cuda.h"
#endif
#if defined(GGML_USE_CLBLAST)
#include "ggml_v2-opencl.h"
#include "ggml_v2-opencl-legacy.h"
#endif



#undef MIN
#undef MAX
#define MIN(a, b) ((a) < (b) ? (a) : (b))
Expand Down

0 comments on commit abed427

Please sign in to comment.