Skip to content

Commit

Permalink
- removed task sorting, because the openMP-runtime seems to use junks…
Browse files Browse the repository at this point in the history
… of sections for each thread
  • Loading branch information
Marcus Walther committed Dec 4, 2015
1 parent 5028097 commit df90683
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Compiler/BackEnd/HpcOmScheduler.mo
Expand Up @@ -1955,7 +1955,10 @@ protected
list<HpcOmSimCode.Task> tasksOfLevel;
algorithm
HpcOmTaskGraph.TASKGRAPHMETA(exeCosts=exeCosts,inComps=inComps) := iMeta;
sortedTasksOfLevel := List.sort(iTasksOfLevel, function HpcOmTaskGraph.compareTasksByExecTime(iExeCosts=exeCosts, iTaskComps=inComps, iDescending=true));
//we should not sort the tasks regarding their size, because it seems that the first N tasks are scheduled to thread 1 and the next N tasks are scheduled
//to thread 2 and so on
//sortedTasksOfLevel := List.sort(iTasksOfLevel, function HpcOmTaskGraph.compareTasksByExecTime(iExeCosts=exeCosts, iTaskComps=inComps, iDescending=true));
sortedTasksOfLevel := iTasksOfLevel;
taskList := makeCalcLevelParTaskLst(sortedTasksOfLevel, iSccSimEqMapping, inComps);
oLevelTaskLists := taskList :: iLevelTaskLists;
end createLevelScheduleForLevel;
Expand Down

0 comments on commit df90683

Please sign in to comment.