| 345 | } |
| 346 | |
| 347 | void *host_alloc(const MemoryType type, const size_t size) override |
| 348 | { |
| 349 | for (SubDevice &sub : devices) { |
| 350 | if (sub.device->info.type != DEVICE_CPU) { |
| 351 | return sub.device->host_alloc(type, size); |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | return Device::host_alloc(type, size); |
| 356 | } |
| 357 | |
| 358 | void host_free(const MemoryType type, void *host_pointer, const size_t size) override |
| 359 | { |
no test coverage detected