| static inline apir_buffer_host_handle_t ggml_buffer_to_apir_handle(ggml_backend_buffer_t buffer) { | |
| // in the backend, the buffer handle is the buffer pointer | |
| return (apir_buffer_host_handle_t) buffer; | |
| } | |
| static inline apir_buffer_type_host_handle_t ggml_buffer_type_to_apir_handle(ggml_backend_buffer_type_t buft) { | |
| // in the backend, the buffer handle is the buffer pointer | |
| return (apir_buffer_type_host_handle_t) buft; | |
| } | |