Skip to content

Commit 25efcfe

Browse files
authored
server : add --no-gpu option to print usage output (#3098)
This commit adds the the command line option `--no-gpu` to the server examples print usage function. The motivation for this is that this options is available and can be set but it is not displayed in the usage message. Refs: #3095
1 parent edbd4cb commit 25efcfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/server/server.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ void whisper_print_usage(int /*argc*/, char ** argv, const whisper_params & para
142142
fprintf(stderr, " -sns, --suppress-nst [%-7s] suppress non-speech tokens\n", params.suppress_nst ? "true" : "false");
143143
fprintf(stderr, " -nth N, --no-speech-thold N [%-7.2f] no speech threshold\n", params.no_speech_thold);
144144
fprintf(stderr, " -nc, --no-context [%-7s] do not use previous audio context\n", params.no_context ? "true" : "false");
145+
fprintf(stderr, " -ng, --no-gpu [%-7s] do not use gpu\n", params.use_gpu ? "false" : "true");
145146
fprintf(stderr, "\n");
146147
}
147148

0 commit comments

Comments
 (0)