From a70095e9616bc23cdfe560c59b1c4e2beb67e2bf Mon Sep 17 00:00:00 2001 From: KerfuffleV2 Date: Sun, 28 May 2023 04:17:44 -0600 Subject: [PATCH] Fix derp in ngl ifdef --- examples/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common.cpp b/examples/common.cpp index 5859cce91..e63565663 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -278,7 +278,7 @@ bool gpt_params_parse(int argc, char ** argv, gpt_params & params) { params.use_color = true; } else if (arg == "--mlock") { params.use_mlock = true; -#ifdef LLAMA_CAN_GPU_OFFLOAD +#ifdef LLAMA_SUPPORTS_GPU_OFFLOAD } else if (arg == "--gpu-layers" || arg == "-ngl" || arg == "--n-gpu-layers") { if (++i >= argc) { invalid_param = true;