Skip to content

Commit

Permalink
Make more fixes to tracing feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jart committed Aug 1, 2024
1 parent edc3f2d commit 2699f6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions llama.cpp/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
}
if (arg == "--trace") {
FLAG_trace = true;
FLAG_unsecure = true;
return true;
}
if (arg == "--fast") {
Expand Down
2 changes: 1 addition & 1 deletion llamafile/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static atomic_int g_count;
static thread_local int g_id;
static thread_local int g_ids;
static thread_local int g_tid;
static struct TraceEvent g_events[1000000];
static struct TraceEvent g_events[10000000];

static int llamafile_trace_oom(void) {
if (atomic_load_explicit(&g_oom, memory_order_relaxed))
Expand Down

0 comments on commit 2699f6b

Please sign in to comment.