MCPcopy Create free account
hub / github.com/blender/cycles / host_alloc

Function host_alloc

src/device/multi/device.cpp:347–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 4

allocMethod · 0.85
allocMethod · 0.85
resizeMethod · 0.85
host_allocMethod · 0.85

Calls 1

host_allocMethod · 0.45

Tested by

no test coverage detected