Skip to content

Commit

Permalink
- some more clang error fixes
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22093 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Marcus Walther committed Sep 2, 2014
1 parent fe5e6c2 commit d672ec9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions Compiler/BackEnd/HpcOmScheduler.mo
Expand Up @@ -2044,10 +2044,12 @@ protected function getSingleRelations
output list<tuple<Integer,Integer,Integer>> orelations;
protected
Real costs;
Integer costsInt;
algorithm
costs := HpcOmTaskGraph.getCommCostTimeBetweenNodes(n,edge,iTaskGraphMeta);
orelations := listAppend(irelations,{(edge,n,realInt(costs))});
orelations := listAppend(orelations,{(n,edge,realInt(costs))});
costsInt := realInt(costs);
orelations := listAppend(irelations,{(edge,n,costsInt)});
orelations := listAppend(orelations,{(n,edge,costsInt)});
end getSingleRelations;

protected function getRelations
Expand Down
14 changes: 7 additions & 7 deletions Compiler/BackEnd/HpcOmTaskGraph.mo
Expand Up @@ -1052,15 +1052,15 @@ algorithm
case((varIdx,derived),DAE.T_INTEGER(_),(intVarIdc,realVarIdc,boolVarIdc))
equation
intVarIdc = varIdx::intVarIdc;
then (intVarIdc,realVarIdc,boolVarIdc);
then ((intVarIdc,realVarIdc,boolVarIdc));
case((varIdx,derived),DAE.T_REAL(_),(intVarIdc,realVarIdc,boolVarIdc))
equation
realVarIdc = (varIdx,derived)::realVarIdc;
then (intVarIdc,realVarIdc,boolVarIdc);
then ((intVarIdc,realVarIdc,boolVarIdc));
case((varIdx,derived),DAE.T_BOOL(_),(intVarIdc,realVarIdc,boolVarIdc))
equation
boolVarIdc = varIdx::boolVarIdc;
then (intVarIdc,realVarIdc,boolVarIdc);
then ((intVarIdc,realVarIdc,boolVarIdc));
case((varIdx,derived),DAE.T_ARRAY(ty=ty),(intVarIdc,realVarIdc,boolVarIdc))
then getUnsolvedVarsBySCC2(iVarIdx,ty,iUnsolvedVars);
else
Expand Down Expand Up @@ -4843,7 +4843,7 @@ algorithm
criticalPathIdx = getCriticalPath2(criticalPaths, 1, -1.0, -1);
((cpCalcTime, criticalPathChild)) = listGet(criticalPaths, criticalPathIdx);
criticalPath = iNode :: criticalPathChild;
commCost = Util.if_(iHandleCommCosts, getCommCostBetweenNodes(iNode, List.first(criticalPathChild), iGraphData), COMMUNICATION(0,0,0,0,-1,0));
commCost = Util.if_(iHandleCommCosts, getCommCostBetweenNodes(iNode, List.first(criticalPathChild), iGraphData), COMMUNICATION(0,0,0,0,-1,0.0));
//print("Comm cost from node " +& intString(iNode) +& " to " +& intString(List.first(criticalPathChild)) +& " with costs " +& intString(Util.tuple33(commCost)) +& "\n");
nodeComps = arrayGet(inComps, iNode);
calcTime = addUpExeCostsForNode(nodeComps, exeCosts, 0.0); //sum up calc times of all components
Expand Down Expand Up @@ -5535,7 +5535,7 @@ algorithm
nodeDescs1 = Util.arrayAppend(nodeDescs1,nodeDescs2);
nodeMark1 = Util.arrayAppend(nodeMark1,nodeMark2);
exeCosts1 = Util.arrayAppend(exeCosts1,exeCosts2);
commCosts1 = List.threadFold2(nodeLst,newComps,setCommCostsToParent,1,74,commCosts1);
commCosts1 = List.threadFold2(nodeLst,newComps,setCommCostsToParent,1,74.0,commCosts1);
graphData = TASKGRAPHMETA(inComps1,varCompMapping1,eqCompMapping1,rootNodes1,nodeNames1,nodeDescs1,exeCosts1,commCosts1,nodeMark1);
then (graph,graphData);
else
Expand All @@ -5548,7 +5548,7 @@ author:Waurich TUD 2014-07"
input list<Integer> parents;
input Integer child;
input Integer numFloatVars;
input Integer reqCycles;
input Real reqCycles;
input array<Communications> commCostsIn;
output array<Communications> commCostsOut;
algorithm
Expand All @@ -5560,7 +5560,7 @@ author:Waurich TUD 2014-07"
input Integer parent;
input Integer child;
input Integer numVars;
input Integer reqCycles;
input Real reqCycles;
input array<Communications> commCostsIn;
output array<Communications> commCostsOut;
protected
Expand Down

0 comments on commit d672ec9

Please sign in to comment.