metal : add debug capture backend function (ggml/694)

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
Jack Mousseau 2024-01-29 01:22:23 -08:00 committed by Georgi Gerganov
parent 8e14e3ddb3
commit 5f14ee0b0c
No known key found for this signature in database
GPG key ID: BF970631944C16B7
2 changed files with 37 additions and 6 deletions

View file

@ -57,6 +57,9 @@ GGML_API GGML_CALL ggml_backend_buffer_type_t ggml_backend_metal_buffer_type(voi
// ref: https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf
GGML_API bool ggml_backend_metal_supports_family(ggml_backend_t backend, int family);
// capture all command buffers committed the next time `ggml_backend_graph_compute` is called
GGML_API void ggml_backend_metal_capture_next_compute(ggml_backend_t backend);
#ifdef __cplusplus
}
#endif