File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -161,9 +161,11 @@ inline static void* ggml_aligned_malloc(size_t size) {
161
161
#endif
162
162
#elif defined(GGML_USE_OPENBLAS)
163
163
#include <cblas.h>
164
- #elif defined(GGML_USE_CUBLAS) || defined(GGML_USE_HIPBLAS)
164
+ #endif
165
+ #if defined(GGML_USE_CUBLAS) || defined(GGML_USE_HIPBLAS)
165
166
#include "ggml-cuda.h"
166
- #elif defined(GGML_USE_CLBLAST)
167
+ #endif
168
+ #if defined(GGML_USE_CLBLAST)
167
169
#include "ggml-opencl.h"
168
170
#endif
169
171
Original file line number Diff line number Diff line change @@ -139,14 +139,17 @@ inline static void* ggml_v2_aligned_malloc(size_t size) {
139
139
#include <Accelerate/Accelerate.h>
140
140
#elif defined(GGML_USE_OPENBLAS)
141
141
#include <cblas.h>
142
- #elif defined(GGML_USE_CUBLAS) || defined(GGML_USE_HIPBLAS)
142
+ #endif
143
+ #if defined(GGML_USE_CUBLAS) || defined(GGML_USE_HIPBLAS)
143
144
#include "ggml_v2-cuda.h"
144
145
#endif
145
146
#if defined(GGML_USE_CLBLAST)
146
147
#include "ggml_v2-opencl.h"
147
148
#include "ggml_v2-opencl-legacy.h"
148
149
#endif
149
150
151
+
152
+
150
153
#undef MIN
151
154
#undef MAX
152
155
#define MIN(a, b) ((a) < (b) ? (a) : (b))
You can’t perform that action at this time.
0 commit comments