Skip to content

Commit

Permalink
- reactivated hpcom tests using json files
Browse files Browse the repository at this point in the history
- always use the numProc given in the flag, output a warning on hpcomDump when this number is higher than the available number

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20701 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Volker Waurich committed May 20, 2014
1 parent 084b52d commit e6802f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/HpcOmSimCodeMain.mo
Expand Up @@ -399,9 +399,9 @@ algorithm
equation
numProcSys = System.numProcessors();
numProc = Util.if_(intGt(numProcFlag,numProcSys),numProcSys,numProcFlag); // the system does not provide so many cores
Debug.bcall(intGt(numProcFlag,numProcSys),print,"Warning: Your system provides only "+&intString(numProcSys)+&" processors!\n");
Debug.bcall(intGt(numProcFlag,numProcSys) and Flags.isSet(Flags.HPCOM_DUMP),print,"Warning: Your system provides only "+&intString(numProcSys)+&" processors!\n");
then
(numProc,true);
(numProcFlag,true);
end match;
end setNumProc;

Expand Down

0 comments on commit e6802f6

Please sign in to comment.