| 229 | } |
| 230 | |
| 231 | Status XRTMemoryManager::Release(int64 handle) { |
| 232 | int device_ordinal = GetDeviceFromHandle(handle); |
| 233 | DeviceContext* device_context = GetDeviceContext(device_ordinal, |
| 234 | /*create_if_missing=*/false); |
| 235 | if (device_context == nullptr || !device_context->Release(handle)) { |
| 236 | return errors::NotFound("XRT memory handle not found: ", handle); |
| 237 | } |
| 238 | return Status::OK(); |
| 239 | } |
| 240 | |
| 241 | Status XRTMemoryManager::CompactAllocations(xla::Backend* backend, |
| 242 | int device_ordinal) { |
nothing calls this directly
no test coverage detected