ggml : upgrade init_tensor API to return a ggml_status (#11854)

* Upgrade init_tensor API to return a ggml_status

To prepare for an 'abort-free' ggml
(ggml not to abort on OOMs but return a OOM status),
as agreeed with Diego in the ggml repo,
upgrade the init_tensor() and view_init() APIs
to return a ggml_status.

* misc fixes

---------

Co-authored-by: slaren <slarengh@gmail.com>
This commit is contained in:
William Tambellini 2025-02-28 05:41:47 -08:00 committed by GitHub
parent c43a3e7996
commit 70680c48e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 136 additions and 97 deletions

2
.gitignore vendored
View file

@ -45,6 +45,8 @@ lcov-report/
tags
.build/
build*
release
debug
!build-info.cmake
!build-info.cpp.in
!build-info.sh