| 33 | const MemZoneId kInvalidMemZoneId = MemZoneId{0, DeviceType::kInvalidDevice, 0}; |
| 34 | |
| 35 | MemZoneId GetNodeCPUMemZoneId(MemZoneId::rank_t node_index) { |
| 36 | return MemZoneId{node_index, DeviceType::kCPU, 0}; |
| 37 | } |
| 38 | |
| 39 | int64_t EncodeMemZoneIdToInt64(const MemZoneId& mem_zone_id) { |
| 40 | int64_t id = static_cast<int64_t>(mem_zone_id.device_index()); |
no outgoing calls
no test coverage detected