Skip to content

Commit

Permalink
- added var indices to hpcom-communication-object
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22163 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Marcus Walther committed Sep 8, 2014
1 parent a982de4 commit 07ad137
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 113 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/HpcOmEqSystems.mo
Expand Up @@ -2322,7 +2322,7 @@ protected function buildDummyCommCost "author:marcusw
input Integer iChildNodeIdx;
output HpcOmTaskGraph.Communication oCommCost;
algorithm
oCommCost := HpcOmTaskGraph.COMMUNICATION(1,0,1,0,iChildNodeIdx,70.0);
oCommCost := HpcOmTaskGraph.COMMUNICATION(1,{},{-1},{},iChildNodeIdx,70.0);
end buildDummyCommCost;

public function createSingleBlockSchedule
Expand Down
9 changes: 9 additions & 0 deletions Compiler/BackEnd/HpcOmSimCode.mo
Expand Up @@ -41,6 +41,14 @@ encapsulated package HpcOmSimCode
list<Integer> otherVars; //a list of not optimized variables
end MEMORYMAP_ARRAY;
end MemoryMap;

public uniontype CommunicationInfo //stored more detailed informations about a communication (edge)
record COMMUNICATION_INFO
list<SimCode.SimVar> floatVars; //the float, int and boolean variables that have to be transfered
list<SimCode.SimVar> intVars;
list<SimCode.SimVar> boolVars;
end COMMUNICATION_INFO;
end CommunicationInfo;

public uniontype Task
record SCHEDULED_TASK
Expand All @@ -65,6 +73,7 @@ encapsulated package HpcOmSimCode
Task sourceTask;
Task targetTask;
Boolean outgoing; //true if the dependency is leading to the task of another thread
//CommunicationInfo communicationInfo;
end DEPTASK;
record PREFETCHTASK //This task will load variables in the cache
list<Integer> varIdc;
Expand Down

0 comments on commit 07ad137

Please sign in to comment.