Skip to content

Commit ed29873

Browse files
committed
tools : fix race condition in fit-params output
1 parent e1f15b4 commit ed29873

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/fit-params/fit-params.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main(int argc, char ** argv) {
3535
}
3636

3737
LOG_INF("%s: printing fitted CLI arguments to stdout...\n", __func__);
38-
std::this_thread::sleep_for(10ms); // to avoid a race between stderr and stdout
38+
common_log_flush(common_log_main());
3939
printf("-c %" PRIu32 " -ngl %" PRIu32, cparams.n_ctx, mparams.n_gpu_layers);
4040

4141
size_t nd = llama_max_devices();

0 commit comments

Comments
 (0)