| 28 | } |
| 29 | |
| 30 | void GetPinnedHostMemoryCase(const MemoryCase& mem_case, MemoryCase* ret) { |
| 31 | ret->set_device_type(DeviceType::kCPU); |
| 32 | ret->set_device_id(0); |
| 33 | if (!IsHostMem(mem_case)) { |
| 34 | ret->set_pinned_device_type(mem_case.device_type()); |
| 35 | ret->set_pinned_device_id(mem_case.device_id()); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | MemoryCase GetPinnedHostMemoryCase(const MemoryCase& mem_case) { |
| 40 | MemoryCase ret; |
no test coverage detected