- Timestamp:
- Aug 27, 2014, 6:13:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/scripts/run.py
r776 r778 24 24 # translate the relative path (if needed) into an absolute path 25 25 basedir = os.path.abspath(sys.argv[1]) 26 print "[ run.py ] platform base directory: { }".format(basedir)26 print "[ run.py ] platform base directory: {0}".format(basedir) 27 27 28 28 # repeat while configurations is not empty 29 29 for faulty in faultylist: 30 30 for x,y in configs: 31 confdir = "{ }/conf/config_{}c".format(basedir, x*y)32 print "[ run.py ] generating files for { }".format(confdir)31 confdir = "{0}/conf/config_{1}c".format(basedir, x*y) 32 print "[ run.py ] generating files for {0}".format(confdir) 33 33 34 34 # 1. generate configuration and ouput directories … … 64 64 os.environ["DISTRIBUTED_BOOT"] = "1" 65 65 os.environ["SOCLIB_TTY"] = "FILES" 66 with open(confdir + "/log", "w") as log_file: 66 67 if x*y <= 4: ompthreads = x*y 68 else: ompthreads = 4 69 with open(confdir + "/log", "w") as logfile: 70 print "executing simul.x" 67 71 subprocess.call([basedir + "/simul.x", 68 72 "-SOFT" , basedir + "/soft/build/soft.elf", 69 73 "-DISK" , "/dev/null", 70 "-NCYCLES", "10000000"], 71 stdout=log_file, 72 stderr=log_file, 74 "-THREADS", str(ompthreads), 75 "-NCYCLES", "1000000"], 76 stdout=logfile, 77 stderr=logfile, 73 78 ) 74 79
Note: See TracChangeset
for help on using the changeset viewer.