ggml : do not abort when ggml_aligned_malloc fails

This commit is contained in:
slaren 2024-11-02 00:54:16 +01:00
parent a6744e43e8
commit bf60f27cda

View File

@ -433,7 +433,6 @@ void * ggml_aligned_malloc(size_t size) {
break; break;
} }
GGML_LOG_ERROR("%s: %s (attempted to allocate %6.2f MB)\n", __func__, error_desc, size/(1024.0*1024.0)); GGML_LOG_ERROR("%s: %s (attempted to allocate %6.2f MB)\n", __func__, error_desc, size/(1024.0*1024.0));
GGML_ABORT("fatal error");
return NULL; return NULL;
} }
return aligned_memory; return aligned_memory;