ggerganov commited on
Commit
394e5d8
·
unverified ·
1 Parent(s): b60b7f7

ggml : fix unknown status (llama/0)

Browse files
Files changed (1) hide show
  1. ggml.c +5 -4
ggml.c CHANGED
@@ -323,11 +323,12 @@ float ggml_table_f32_f16[1 << 16];
323
  const char * ggml_status_to_string(enum ggml_status status) {
324
  switch (status) {
325
  case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
326
- case GGML_STATUS_FAILED: return "GGML status: error (operation failed)";
327
- case GGML_STATUS_SUCCESS: return "GGML status: success";
328
- case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
329
- default: GGML_ASSERT(false);
330
  }
 
 
331
  }
332
 
333
  // note: do not use these inside ggml.c
 
323
  const char * ggml_status_to_string(enum ggml_status status) {
324
  switch (status) {
325
  case GGML_STATUS_ALLOC_FAILED: return "GGML status: error (failed to allocate memory)";
326
+ case GGML_STATUS_FAILED: return "GGML status: error (operation failed)";
327
+ case GGML_STATUS_SUCCESS: return "GGML status: success";
328
+ case GGML_STATUS_ABORTED: return "GGML status: warning (operation aborted)";
 
329
  }
330
+
331
+ return "GGML status: unknown";
332
  }
333
 
334
  // note: do not use these inside ggml.c