Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only show -ngl option when relevant + other doc/arg handling updates #1625

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix derp in ngl ifdef
KerfuffleV2 committed May 28, 2023
commit a70095e9616bc23cdfe560c59b1c4e2beb67e2bf
2 changes: 1 addition & 1 deletion examples/common.cpp
Original file line number Diff line number Diff line change
@@ -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;