From 383b2d881a5e52c5d92ff3af6aa336a6e80bd5e6 Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Wed, 3 Apr 2024 18:45:01 +0200 Subject: [PATCH 1/4] TEST tmp modif --- ggml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml.c b/ggml.c index c9b0a6a0ef7..8cbb8daa1be 100644 --- a/ggml.c +++ b/ggml.c @@ -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)); From 11e09c5b294e5e86a7b7ef9aadb5156f8cef4d20 Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Wed, 3 Apr 2024 20:26:49 +0200 Subject: [PATCH 2/4] TEST tmp modif --- ggml-cuda/acc.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml-cuda/acc.cu b/ggml-cuda/acc.cu index 96bfe1c9d81..0218f94f31c 100644 --- a/ggml-cuda/acc.cu +++ b/ggml-cuda/acc.cu @@ -18,6 +18,7 @@ static __global__ void acc_f32(const float * x, const float * y, float * dst, co } } + static void acc_f32_cuda(const float * x, const float * y, float * dst, const int n_elements, const int ne10, const int ne11, const int ne12, const int nb1, const int nb2, const int offset, cudaStream_t stream) { From ba5f8d3bb8ebf55452d7a92a7f61dade27fa00d0 Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Wed, 3 Apr 2024 21:25:40 +0200 Subject: [PATCH 3/4] TEST tmp modif --- ggml-cuda/acc.cu | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml-cuda/acc.cu b/ggml-cuda/acc.cu index 0218f94f31c..4362dffd46c 100644 --- a/ggml-cuda/acc.cu +++ b/ggml-cuda/acc.cu @@ -19,6 +19,7 @@ static __global__ void acc_f32(const float * x, const float * y, float * dst, co } + static void acc_f32_cuda(const float * x, const float * y, float * dst, const int n_elements, const int ne10, const int ne11, const int ne12, const int nb1, const int nb2, const int offset, cudaStream_t stream) { From 32614af385d99b4c3bbf6954784a9934b12b9dfd Mon Sep 17 00:00:00 2001 From: Pierrick HYMBERT Date: Wed, 3 Apr 2024 21:34:07 +0200 Subject: [PATCH 4/4] TEST tmp modif --- ggml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ggml.c b/ggml.c index 8cbb8daa1be..8caab813624 100644 --- a/ggml.c +++ b/ggml.c @@ -245,6 +245,7 @@ inline static void * ggml_malloc(size_t size) { 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));