- Timestamp:
- Apr 19, 2015, 5:19:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
r978 r986 4 4 5 5 import os 6 import shutil 6 7 import subprocess 7 8 import arch … … 26 27 faultymask -- a mask of disabled routers' interfaces 27 28 faultycore -- a list containing faulty cores' coordinates (x, y, l) 28 debug -- a list with debug's start cycle, stop cycle,PID and MID29 debug -- a list with debug's start cycle, PID and MID 29 30 threads -- number of OpenMP threads 30 31 firmdebug -- activate the DEBUG compilation mode on software … … 132 133 command.extend(["-PROCID", str(args.debug[1])]); 133 134 command.extend(["-MEMCID", str(args.debug[2])]); 135 command.extend(["-IOB", "1"]); 134 136 135 137 if args.ncycles > 0: … … 153 155 command.extend(["-THREADS", str(ompthreads)]) 154 156 155 156 157 logfile.write("Execute: {0}\n".format(" ".join(command))) 157 158 logfile.flush() … … 163 164 # 6. move simulation terminal output into the target config dir 164 165 if os.path.lexists("term0"): 165 os.rename("term0", os.path.join(outdir, "term"))166 shutil.copy2("term0", os.path.join(outdir, "term")) 166 167 167 168 # get command-line arguments … … 210 211 211 212 parser.add_argument( 212 '--debug', '-g', dest='debug', nargs= 4,213 help='needs four arguments: from, to,procid, memcid')213 '--debug', '-g', dest='debug', nargs=3, 214 help='needs four arguments: from, procid, memcid') 214 215 215 216 parser.add_argument(
Note: See TracChangeset
for help on using the changeset viewer.