Skip to content

Commit

Permalink
- the hpcom speedup is now printed to stdout with an accuracy of two …
Browse files Browse the repository at this point in the history
…digits after the decimal point

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18853 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Marcus Walther committed Jan 30, 2014
1 parent 45cfb62 commit 742025b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Compiler/BackEnd/HpcOmScheduler.mo
Expand Up @@ -43,6 +43,7 @@ protected import Debug;
protected import Flags;
protected import HpcOmSchedulerExt;
protected import List;
protected import System;
protected import Util;

public uniontype Task
Expand Down Expand Up @@ -2413,13 +2414,13 @@ algorithm
case(_,_,_,_,_)
equation
true = speedUpMax ==. -1.0;
print("The predicted SpeedUp with "+&intString(numProc)+&" processors is "+&realString(speedUp)+&".\n");
print("The predicted SpeedUp with "+&intString(numProc)+&" processors is " +& System.snprintff("%.2f", 25, speedUp) +& ".\n");
then
();
else
equation
isOkString = "The predicted SpeedUp with "+&intString(numProc)+&" processors is: "+&realString(speedUp)+&" With a theoretical maxmimum speedUp of: "+&realString(speedUpMax)+&"\n";
isNotOkString = "Something is weird. The predicted SpeedUp is "+&realString(speedUp)+&" and the theoretical maximum speedUp is "+&realString(speedUpMax)+&"\n";
isOkString = "The predicted SpeedUp with "+&intString(numProc)+&" processors is: "+& System.snprintff("%.2f", 25, speedUp)+&" With a theoretical maxmimum speedUp of: "+& System.snprintff("%.2f", 25, speedUpMax)+&"\n";
isNotOkString = "Something is weird. The predicted SpeedUp is "+& System.snprintff("%.2f", 25, speedUp)+&" and the theoretical maximum speedUp is "+& System.snprintff("%.2f", 25, speedUpMax)+&"\n";
Debug.bcall(realGt(speedUp,speedUpMax),print,isNotOkString);
Debug.bcall(realLe(speedUp,speedUpMax),print,isOkString);
then
Expand Down

0 comments on commit 742025b

Please sign in to comment.