Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_cpu.cpp
| Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| } | } | ||||
| ~CPUDevice() | ~CPUDevice() | ||||
| { | { | ||||
| task_pool.stop(); | task_pool.stop(); | ||||
| } | } | ||||
| virtual bool show_samples() const | |||||
| { | |||||
| return (TaskScheduler::num_threads() == 1); | |||||
| } | |||||
| void mem_alloc(device_memory& mem, MemoryType /*type*/) | void mem_alloc(device_memory& mem, MemoryType /*type*/) | ||||
| { | { | ||||
| mem.device_pointer = mem.data_pointer; | mem.device_pointer = mem.data_pointer; | ||||
| mem.device_size = mem.memory_size(); | mem.device_size = mem.memory_size(); | ||||
| stats.mem_alloc(mem.device_size); | stats.mem_alloc(mem.device_size); | ||||
| } | } | ||||
| void mem_copy_to(device_memory& /*mem*/) | void mem_copy_to(device_memory& /*mem*/) | ||||
| ▲ Show 20 Lines • Show All 425 Lines • Show Last 20 Lines | |||||