Skip to content

Commit d2b496b

Browse files
authored
batched-bench : remove unused code (#9305)
1 parent b34e023 commit d2b496b

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

examples/batched-bench/batched-bench.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,10 @@
33
#include "llama.h"
44

55
#include <algorithm>
6-
#include <cmath>
76
#include <cstdio>
87
#include <string>
98
#include <vector>
109

11-
// mutates the input string
12-
static std::vector<int> parse_list(char * p) {
13-
std::vector<int> ret;
14-
15-
char * q = p;
16-
17-
while (*p) {
18-
if (*p == ',') {
19-
*p = '\0';
20-
ret.push_back(std::atoi(q));
21-
q = p + 1;
22-
}
23-
24-
++p;
25-
}
26-
27-
ret.push_back(std::atoi(q));
28-
29-
return ret;
30-
}
31-
3210
static void print_usage(int, char ** argv) {
3311
LOG_TEE("\nexample usage:\n");
3412
LOG_TEE("\n %s -m model.gguf -c 2048 -b 2048 -ub 512 -npp 128,256,512 -ntg 128,256 -npl 1,2,4,8,16,32 [-pps]\n", argv[0]);

0 commit comments

Comments
 (0)