| 521 | // events |
| 522 | |
| 523 | ggml_backend_event_t ggml_backend_event_new(ggml_backend_dev_t device) { |
| 524 | // null device is allowed for the transition period to the device interface |
| 525 | if (device == NULL || device->iface.event_new == NULL) { |
| 526 | return NULL; |
| 527 | } |
| 528 | return device->iface.event_new(device); |
| 529 | } |
| 530 | |
| 531 | void ggml_backend_event_free(ggml_backend_event_t event) { |
| 532 | if (event == NULL) { |
no outgoing calls
no test coverage detected