Skip to content

Commit

Permalink
ggml : disable fprintf when building with NDEBUG (ggerganov#631)
Browse files Browse the repository at this point in the history
Co-authored-by: Judd <foldl@boxvest.com>
  • Loading branch information
foldl and Judd authored Dec 5, 2023
1 parent a399be0 commit 64f2366
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ggml-backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,9 @@ size_t ggml_backend_register(const char * name, ggml_backend_init_fn init_fn, gg

snprintf(ggml_backend_registry[id].name, sizeof(ggml_backend_registry[id].name), "%s", name);

#ifndef NDEBUG
fprintf(stderr, "%s: registered backend %s\n", __func__, name);
#endif

ggml_backend_registry_count++;
return ggml_backend_registry_count - 1;
Expand Down

0 comments on commit 64f2366

Please sign in to comment.