We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91c317f commit 5dfa26bCopy full SHA for 5dfa26b
samples/aobench/ao_main.c
@@ -154,7 +154,7 @@ int main(int argc, char **argv) {
154
cli_parse_common_app_arguments(&args.common_app_args, &argc, argv);
155
156
bool do_host = false, do_ispc = false, do_device = false, do_all = true;
157
- for (size_t i = 0; i < argc; i++) {
+ for (size_t i = 1; i < argc; i++) {
158
if (strcmp(argv[i], "--only-device") == 0) {
159
do_device = true;
160
do_all = false;
@@ -164,6 +164,9 @@ int main(int argc, char **argv) {
164
} else if (strcmp(argv[i], "--only-ispc") == 0) {
165
do_ispc = true;
166
167
+ } else {
168
+ error_print("Unrecognised argument: %s\n", argv[i]);
169
+ error_die();
170
}
171
172
0 commit comments