aboutsummaryrefslogtreecommitdiff
path: root/ggml.c
diff options
context:
space:
mode:
authorclyang <clyang@clyang.net>2023-07-09 16:12:20 +0800
committerGitHub <noreply@github.com>2023-07-09 11:12:20 +0300
commit3bbc1a11f04a9adc0d0e08c2940ba4d2978755ab (patch)
tree49a21e04c55a0087b81499803140b4e3fc4f5632 /ggml.c
parent2492a53fd0d8372ecc67f49f07b581905175eea8 (diff)
ggml : fix buidling with Intel MKL but ask for "cblas.h" issue (#2104) (#2115)
* Fix buidling with Intel MKL but ask for "cblas.h" issue * Use angle brackets to indicate the system library
Diffstat (limited to 'ggml.c')
-rw-r--r--ggml.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ggml.c b/ggml.c
index 55b0aff..c10877a 100644
--- a/ggml.c
+++ b/ggml.c
@@ -247,7 +247,11 @@ inline static void* ggml_aligned_malloc(size_t size) {
#include "ggml-opencl.h"
#endif
#elif defined(GGML_USE_OPENBLAS)
+#if defined(GGML_BLAS_USE_MKL)
+#include <mkl.h>
+#else
#include <cblas.h>
+#endif
#elif defined(GGML_USE_CUBLAS)
#include "ggml-cuda.h"
#elif defined(GGML_USE_CLBLAST)