diff --git a/ggml.c b/ggml.c index 074e63cc7..71e77d015 100644 --- a/ggml.c +++ b/ggml.c @@ -26,7 +26,9 @@ #include #include +#ifdef GGML_USE_MPI #include +#endif #ifdef GGML_USE_METAL #include diff --git a/llama.cpp b/llama.cpp index a4435897e..af22bf64b 100644 --- a/llama.cpp +++ b/llama.cpp @@ -49,7 +49,9 @@ #include #include +#ifdef GGML_USE_MPI #include +#endif #if defined(_MSC_VER) #pragma warning(disable: 4244 4267) // possible loss of data