| 239 | } |
| 240 | |
| 241 | Status XRTMemoryManager::CompactAllocations(xla::Backend* backend, |
| 242 | int device_ordinal) { |
| 243 | DeviceContext* device_context = GetDeviceContext(device_ordinal, |
| 244 | /*create_if_missing=*/false); |
| 245 | return device_context != nullptr |
| 246 | ? device_context->CompactAllocations(this, backend) |
| 247 | : Status::OK(); |
| 248 | } |
| 249 | |
| 250 | void XRTMemoryManager::ReleaseAllAllocations() { |
| 251 | mutex_lock lock(lock_); |
no outgoing calls
no test coverage detected