Skip to content

Commit

Permalink
ggml : restore abort() in GGML_ASSERT (#4242)
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre committed Nov 28, 2023
1 parent 8406b09 commit 64e64aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ggml.h
Expand Up @@ -244,11 +244,10 @@
#define GGML_ASSERT(x) \
do { \
if (!(x)) { \
fprintf(stderr, "GGML_ASSERT: %s:%d: %s\n", __FILE__, __LINE__, #x); \
fflush(stderr); \
fflush(stdout); \
fprintf(stderr, "GGML_ASSERT: %s:%d: %s\n", __FILE__, __LINE__, #x); \
ggml_print_backtrace(); \
exit(1); \
abort(); \
} \
} while (0)

Expand Down

0 comments on commit 64e64aa

Please sign in to comment.