Ignore:
Timestamp:
Oct 21, 2014, 5:52:59 PM (9 years ago)
Author:
cfuguet
Message:

reconf: introducing a -FAULTY_ROUTER argument in tsar_generic_iob platform

  • This argument passes the XY id of the router to disable before the simulation.
  • Using the reconf:dspin_router instead of the soclib:dspin_router component in tsar_iob_cluster.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/onerun.py

    r847 r855  
    3939    '--batch-mode', '-b', dest='batchmode', action='store_true',
    4040    help='run simulation in batch mode: no interactive TTY or FrameBuffer')
     41
     42parser.add_argument(
     43    '--faulty-router', '-f', dest='faultyrouter', default=-1,
     44    help='ID (X,Y) of faulty router')
     45
     46parser.add_argument(
     47    '--debug', '-g', dest='debug', nargs=4,
     48    help='needs four arguments: from, to, procid, memcid')
    4149
    4250args = parser.parse_args()
     
    117125command.extend(["-DISK", "/dev/null"])
    118126command.extend(["-THREADS", str(ompthreads)])
    119 command.extend(["-NCYCLES", "1000000"])
     127
     128if args.faultyrouter != -1:
     129    command.extend(["-FAULTY_ROUTER", str(args.faultyrouter)])
     130
     131if 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])]);
     136else:
     137    command.extend(["-NCYCLES", "1000000"])
     138
    120139subprocess.call(command, stdout=logfile, stderr=logfile)
    121140
Note: See TracChangeset for help on using the changeset viewer.