| 285 | } |
| 286 | |
| 287 | Allocator* XlaDevice::GetAllocator(AllocatorAttributes attr) { |
| 288 | mutex_lock lock(mu_); |
| 289 | return GetAllocatorLocked(attr); |
| 290 | } |
| 291 | |
| 292 | Allocator* XlaDevice::GetAllocatorLocked(AllocatorAttributes attr) { |
| 293 | if (attr.on_host()) { |
no outgoing calls