* Add option to not print stack on abort
Add option/envvar to disable stack printing on abort.
Also link some unittests with Threads to fix link errors on
ubuntu/g++11.
* Update ggml/src/ggml.c
---------
Co-authored-by: Diego Devesa <redacted>
#endif
static void ggml_print_backtrace(void) {
+ const char * GGML_NO_BACKTRACE = getenv("GGML_NO_BACKTRACE");
+ if (GGML_NO_BACKTRACE) {
+ return;
+ }
char attach[32];
snprintf(attach, sizeof(attach), "attach %d", getpid());
int pid = fork();