- Timestamp:
- Oct 21, 2014, 5:52:59 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py
r847 r855 39 39 '--batch-mode', '-b', dest='batchmode', action='store_true', 40 40 help='run simulation in batch mode: no interactive TTY or FrameBuffer') 41 42 parser.add_argument( 43 '--faulty-router', '-f', dest='faultyrouter', default=-1, 44 help='ID (X,Y) of faulty router') 45 46 parser.add_argument( 47 '--debug', '-g', dest='debug', nargs=4, 48 help='needs four arguments: from, to, procid, memcid') 41 49 42 50 args = parser.parse_args() … … 117 125 command.extend(["-DISK", "/dev/null"]) 118 126 command.extend(["-THREADS", str(ompthreads)]) 119 command.extend(["-NCYCLES", "1000000"]) 127 128 if args.faultyrouter != -1: 129 command.extend(["-FAULTY_ROUTER", str(args.faultyrouter)]) 130 131 if args.debug != None: 132 command.extend(["-DEBUG", str(args.debug[0])]); 133 command.extend(["-NCYCLES", str(args.debug[1])]); 134 command.extend(["-PROCID", str(args.debug[2])]); 135 command.extend(["-MEMCID", str(args.debug[3])]); 136 else: 137 command.extend(["-NCYCLES", "1000000"]) 138 120 139 subprocess.call(command, stdout=logfile, stderr=logfile) 121 140
Note: See TracChangeset
for help on using the changeset viewer.