Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/rmit.py

    rd71db1a r3613e25  
    2222
    2323def parse_range(x):
    24         result = []
    25         for part in x.split(','):
    26                 if '-' in part:
    27                         a, b = part.split('-')
    28                         a, b = int(a), int(b)
    29                         result.extend(range(a, b + 1))
    30                 else:
    31                         a = int(part)
    32                         result.append(a)
    33         return result
     24    result = []
     25    for part in x.split(','):
     26        if '-' in part:
     27            a, b = part.split('-')
     28            a, b = int(a), int(b)
     29            result.extend(range(a, b + 1))
     30        else:
     31            a = int(part)
     32            result.append(a)
     33    return result
    3434
    3535class DependentOpt:
     
    184184                        range(145, 193) : "0-95,96-191",
    185185                },
    186                 "nasus": {
    187                         range(  1,  65) : "64-127",
    188                         range( 65, 129) : "64-127,192-255",
    189                         range(129, 193) : "64-255",
    190                         range(193, 257) : "0-255",
    191                 },
    192                 "ocean": {
    193                         range(  1,  33) : "0-31",
    194                 },
    195186        }
    196187
    197         host = socket.gethostname()
    198         if host in known_hosts:
     188        if (host := socket.gethostname()) in known_hosts:
    199189                taskset_maps = known_hosts[host]
    200190                return True
     
    233223        parser.add_argument('--trials', help='Number of trials to run per combinaison', type=int, default=3)
    234224        parser.add_argument('--notaskset', help='If specified, the trial will not use taskset to match the -p option', action='store_true')
    235         parser.add_argument('--extra', help='Extra arguments to be added unconditionally', action='append', type=str)
    236225        parser.add_argument('command', metavar='command', type=str, nargs=1, help='the command prefix to run')
    237226        parser.add_argument('candidates', metavar='candidates', type=str, nargs='*', help='the candidate suffix to run')
     
    288277        # ================================================================================
    289278        # Fixup the different commands
    290 
    291         # add extras
    292         if options.extra:
    293                 for act in actions:
    294                         for e in options.extra:
    295                                 act.append(e)
    296279
    297280        # Add tasksets
Note: See TracChangeset for help on using the changeset viewer.