Example #1
0
	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());
	}
Example #2
0
 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);
 }