int get_split_task_count(DeviceTask& task) { if(task.type == DeviceTask::SHADER) return task.get_subtask_count(TaskScheduler::num_threads(), 256); else return task.get_subtask_count(TaskScheduler::num_threads()); }
int get_split_task_count(DeviceTask &task) { if (task.type == DeviceTask::SHADER) return task.get_subtask_count(info.cpu_threads, 256); else return task.get_subtask_count(info.cpu_threads); }