Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/device_multi.cpp
| Show First 20 Lines • Show All 272 Lines • ▼ Show 20 Lines | foreach(SubDevice& sub, devices) { | ||||
| if(sub.device == sub_device) | if(sub.device == sub_device) | ||||
| return i; | return i; | ||||
| i++; | i++; | ||||
| } | } | ||||
| return -1; | return -1; | ||||
| } | } | ||||
| int task_count(DeviceTask& task) | |||||
| { | |||||
| return 1; | |||||
| } | |||||
| void task_add(DeviceTask& task) | void task_add(DeviceTask& task) | ||||
| { | { | ||||
| list<DeviceTask> tasks; | list<DeviceTask> tasks; | ||||
| task.split(tasks, devices.size()); | task.split(tasks, devices.size()); | ||||
| foreach(SubDevice& sub, devices) { | foreach(SubDevice& sub, devices) { | ||||
| if(!tasks.empty()) { | if(!tasks.empty()) { | ||||
| DeviceTask subtask = tasks.front(); | DeviceTask subtask = tasks.front(); | ||||
| ▲ Show 20 Lines • Show All 148 Lines • Show Last 20 Lines | |||||