Skip to content

Commit

Permalink
TEST tmp modif
Browse files Browse the repository at this point in the history
  • Loading branch information
phymbert committed Apr 3, 2024
1 parent b996b00 commit 383b2d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ggml.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ inline static void * ggml_malloc(size_t size) {
GGML_PRINT("WARNING: Behavior may be unexpected when allocating 0 bytes for ggml_malloc!\n");
return NULL;
}

void * result = malloc(size);
if (result == NULL) {
GGML_PRINT("%s: failed to allocate %6.2f MB\n", __func__, size/(1024.0*1024.0));
Expand Down

0 comments on commit 383b2d8

Please sign in to comment.