Skip to content

Commit c4b1052

Browse files
committed
parallel : better var name
ggml-ci
1 parent 720fec0 commit c4b1052

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/parallel/parallel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ int main(int argc, char ** argv) {
181181
const bool dump_kv_cache = params.dump_kv_cache;
182182

183183
// is the system prompt shared in the cache
184-
const bool is_pp_shared = params.is_pp_shared;
184+
const bool is_sp_shared = params.is_pp_shared;
185185

186186
// extra text to insert in each client's prompt in order to make it larger
187187
const int32_t n_junk = params.n_junk;
@@ -249,7 +249,7 @@ int main(int argc, char ** argv) {
249249
LOG_INF("%s: n_parallel = %d, n_sequences = %d, cont_batching = %d, system tokens = %d\n", __func__, n_clients, n_seq, cont_batching, n_tokens_system);
250250
LOG_INF("\n");
251251

252-
if (is_pp_shared) {
252+
if (is_sp_shared) {
253253
LOG_INF("%s: Evaluating the system prompt ...\n", __func__);
254254

255255
for (int32_t i = 0; i < n_tokens_system; ++i) {
@@ -319,7 +319,7 @@ int main(int argc, char ** argv) {
319319
// [system prompt] + [junk] + [user prompt]
320320
client.n_past = 0;
321321
client.prompt = "";
322-
if (is_pp_shared) {
322+
if (is_sp_shared) {
323323
client.n_past = n_tokens_system;
324324
} else {
325325
client.prompt += k_system;

0 commit comments

Comments
 (0)