Fix derp in ngl ifdef

This commit is contained in:
KerfuffleV2 2023-05-28 04:17:44 -06:00
parent f40f6e8252
commit a70095e961

View file

@ -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;