Changeset 778 for branches/reconfiguration/platforms
- Timestamp:
- Aug 27, 2014, 6:13:01 PM (10 years ago)
- Location:
- branches/reconfiguration/platforms/tsar_generic_iob
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/scripts/faultyprocs.py
r775 r778 14 14 15 15 for x, y, l in faulty: 16 content.append(" ({ } << 6) | ({} << 2) | {},\n".format(x, y, l))16 content.append(" ({0} << 6) | ({1} << 2) | {2},\n".format(x, y, l)) 17 17 18 18 content.append( "};\n" -
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 -
branches/reconfiguration/platforms/tsar_generic_iob/top.cpp
r769 r778 150 150 // Parallelisation 151 151 /////////////////////////////////////////////////// 152 #define USE_OPENMP 0153 154 152 #if USE_OPENMP 155 153 #include <omp.h>
Note: See TracChangeset
for help on using the changeset viewer.