From 777aed5e69e240a54e7d3da962d8520855f072b9 Mon Sep 17 00:00:00 2001 From: YellowRoseCx <80486540+YellowRoseCx@users.noreply.github.com> Date: Mon, 3 Jul 2023 15:53:32 -0500 Subject: [PATCH] fix my mistake that broke other arches --- otherarch/gpt2_v3.cpp | 3 +-- otherarch/gptj_v3.cpp | 3 +-- otherarch/llama_v2.cpp | 3 +-- otherarch/mpt_v3.cpp | 3 +-- otherarch/neox_v3.cpp | 3 +-- 5 files changed, 5 insertions(+), 10 deletions(-) diff --git a/otherarch/gpt2_v3.cpp b/otherarch/gpt2_v3.cpp index b507357c4555a..6574a83142bd7 100644 --- a/otherarch/gpt2_v3.cpp +++ b/otherarch/gpt2_v3.cpp @@ -18,8 +18,7 @@ #ifdef GGML_USE_CUBLAS #include "ggml-cuda.h" -#endif -#if defined(GGML_USE_CLBLAST) +#elif defined(GGML_USE_CLBLAST) #include "ggml-opencl.h" #endif diff --git a/otherarch/gptj_v3.cpp b/otherarch/gptj_v3.cpp index 66cad6f5cff44..12b6df126a6a7 100644 --- a/otherarch/gptj_v3.cpp +++ b/otherarch/gptj_v3.cpp @@ -18,8 +18,7 @@ #ifdef GGML_USE_CUBLAS #include "ggml-cuda.h" -#endif -#if defined(GGML_USE_CLBLAST) +#elif defined(GGML_USE_CLBLAST) #include "ggml-opencl.h" #endif diff --git a/otherarch/llama_v2.cpp b/otherarch/llama_v2.cpp index af14e9480e4e5..80af180b5330f 100644 --- a/otherarch/llama_v2.cpp +++ b/otherarch/llama_v2.cpp @@ -12,8 +12,7 @@ #ifdef GGML_USE_CUBLAS #include "ggml_v2-cuda.h" -#endif -#if defined(GGML_USE_CLBLAST) +#elif defined(GGML_USE_CLBLAST) #include "ggml_v2-opencl.h" #endif diff --git a/otherarch/mpt_v3.cpp b/otherarch/mpt_v3.cpp index ef362a051c3d3..cca7fc0ca7b7f 100644 --- a/otherarch/mpt_v3.cpp +++ b/otherarch/mpt_v3.cpp @@ -18,8 +18,7 @@ #ifdef GGML_USE_CUBLAS #include "ggml-cuda.h" -#endif -#if defined(GGML_USE_CLBLAST) +#elif defined(GGML_USE_CLBLAST) #include "ggml-opencl.h" #endif diff --git a/otherarch/neox_v3.cpp b/otherarch/neox_v3.cpp index 7522b8f8da0a2..8b757dcfb6cf5 100644 --- a/otherarch/neox_v3.cpp +++ b/otherarch/neox_v3.cpp @@ -16,8 +16,7 @@ #ifdef GGML_USE_CUBLAS #include "ggml-cuda.h" -#endif -#if defined(GGML_USE_CLBLAST) +#elif defined(GGML_USE_CLBLAST) #include "ggml-opencl.h" #endif