Permalink
Browse files

update skryptu uruchamiajacego testy

  • Loading branch information...
1 parent bab2c7f commit 2fcec77d835bbc6e4903d104ea5e375189ff5b75 @szank committed Feb 1, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 python/run_test.py
View
10 python/run_test.py 100644 → 100755
@@ -43,13 +43,13 @@ def runOpenMp(resultFile):
def runMPI( resultFile ):
- execString = ["mpirun", "./MPI ./params"]
+
for i in range( 1, int( sys.argv[2] ) +1 ):
for threadCount in range ( 1, int( sys.argv[3] ) +1 ):
- fullExecString = execString[:]
- fullExecString.insert(1, "-np " + str( threadCount ))
- print fullExecString
- duration = countExecDuration(fullExecString)
+ execString = ["mpirun"]
+ paramString = "-np " + str(threadCount) + " ./MPI params"
+ execString.append(paramString)
+ duration = countExecDuration(["mpirun","-np",str(threadCount), "./MPI", "./params"] )
resultFile.write("MPI;")
resultFile.write( str( i ))
resultFile.write(";")

0 comments on commit 2fcec77

Please sign in to comment.