/gem5/util/ |
H A D | regress | 67 help='scons options') 79 (options, tests) = optparser.parse_args() 89 # split list options on ',' to get Python lists 90 builds = split_if_nonempty(options.builds) 91 modes = split_if_nonempty(options.modes) 92 test_variants = split_if_nonempty(options.test_variants) 93 compile_variants = split_if_nonempty(options.compile_variants) 95 options.build_dir = os.path.join(options.build_dir, 'build') 118 targets += ['%s/%s/gem5.%s' % (options [all...] |
H A D | checkpoint-tester.py | 42 # Note that '--' must be used to separate the script options from the 47 # - This script relies on the checkpoint options implemented in 76 (options, args) = parser.parse_args() 78 interval = options.interval 80 if os.path.exists(options.directory): 81 print 'Error: test directory', options.directory, 'exists' 85 top_dir = options.directory 94 options = args[1:] variable 101 subprocess.call([m5_binary] + ['-red', cptdir] + options + initial_args) 120 subprocess.call([m5_binary] + ['-red', mydir] + options [all...] |
H A D | gen_arm_fs_files.py | 78 (options, args) = parser.parse_args() 84 if not os.path.isdir(options.dest_dir): 85 print "Error: %s is not a directory." % options.dest_dir 88 if not os.path.isdir(options.gem5_dir): 89 print "Error: %s is not a directory." % options.gem5_dir 96 binaries_dir = options.dest_dir + "/binaries" 102 revisions_dir = options.dest_dir + "/revisions" 135 make_jobs_str = "-j" + str(options.make_jobs) 145 kernel_vexpress_gem5_dir = options.dest_dir + "/linux-kernel-vexpress_gem5" 147 options [all...] |
H A D | compile | 91 usage = '''%prog [compile options] <version> [SCons options] 159 set_group("ISA options") 166 set_group("Emulation options") 177 (options, args) = parser.parse_args() 179 if options.everything: 180 options.all_bin = True 181 options.prof = True 182 options.all_isa = True 184 if options [all...] |
/gem5/util/stats/ |
H A D | stats.py | 66 def commands(options, command, args): 71 mydb = dbinit.MyDB(options) 103 source.host = options.host 104 source.db = options.db 105 source.passwd = options.passwd 106 source.user = options.user 110 if type(options.method) is str: 111 source.method = options.method 113 if options.runs is None: 116 rx = re.compile(options 416 options = Options() variable in class:Options [all...] |
/gem5/tests/configs/ |
H A D | gpu-ruby.py | 54 raise Exception("cannot find %s in list of possible options" % opt_str) 63 raise Exception("cannot find %s in list of possible options" % opt_str) 152 # Add the ruby specific and protocol specific options 157 (options, args) = parser.parse_args() 167 n_cu = options.num_compute_units 168 num_sqc = int(math.ceil(float(n_cu) / options.cu_per_sqc)) 169 options.num_sqc = num_sqc # pass this to Ruby 173 shader = Shader(n_wf = options.wfs_per_simd, 175 clock = options.GPUClock, 177 voltage = options [all...] |
H A D | gpu-randomtest-ruby.py | 50 # add the gpu specific options expected by the the gpu and gpu_RfO 62 # Add the ruby specific and protocol specific options 65 (options, args) = parser.parse_args() 71 options.l1d_size="256B" 72 options.l1i_size="256B" 73 options.l2_size="512B" 74 options.l3_size="1kB" 75 options.l1d_assoc=2 76 options.l1i_assoc=2 77 options [all...] |
H A D | pc-simple-timing-ruby.py | 37 # Add the ruby specific and protocol specific options 41 (options, args) = parser.parse_args() 45 options.l1d_size="32kB" 46 options.l1i_size="32kB" 47 options.l2_size="4MB" 48 options.l1d_assoc=2 49 options.l1i_assoc=2 50 options.l2_assoc=2 51 options.num_cpus = 2 55 system = FSConfig.makeLinuxX86System('timing', options [all...] |
/gem5/src/python/m5/ |
H A D | main.py | 49 __all__ = [ 'options', 'arguments', 'main' ] 51 usage="%prog [gem5 options] script.py [script options]" 70 from .options import OptionParser 72 options = OptionParser(usage=usage, version=version, 74 option = options.add_option 75 group = options.set_group 79 # Help options 116 # Statistics options 136 # Debugging options [all...] |
/gem5/configs/common/ |
H A D | CacheConfig.py | 52 def config_cache(options, system): 53 if options.external_memory_system and (options.caches or options.l2cache): 54 print("External caches and internal caches are exclusive options.\n") 57 if options.external_memory_system: 58 ExternalCache = ExternalCacheFactory(options.external_memory_system) 60 if options.cpu_type == "O3_ARM_v7a_3": 71 elif options.cpu_type == "HPI": 88 system.cache_line_size = options [all...] |
H A D | FileSystemConfig.py | 55 def config_filesystem(system, options = None): 58 @param options: An optional argument which contains an Options.py options 73 fsdir = joinpath(m5.options.outdir, 'fs') 83 if hasattr(options, 'cpu_clock'): 84 cpu_clock = toFrequency(options.cpu_clock) / mega 87 if hasattr(options, 'l2_size'): 88 l2_size = toMemorySize(options.l2_size) / kibi 138 if options and hasattr(options, 'chroo [all...] |
/gem5/src/systemc/tests/systemc/kernel/dynamic_processes/test07/ |
H A D | test07.cpp | 66 sc_spawn_options options; local 67 options.spawn_method(); 68 options.set_sensitivity( &m_port ); 69 options.dont_initialize(); 70 sc_spawn( sc_bind(&DUT::method,this), "method", &options ); local
|
/gem5/configs/example/arm/ |
H A D | fs_bigLITTLE.py | 206 def build(options): 216 "root=%s" % options.root, 218 "init=%s" % options.kernel_init, 224 disks = [default_disk] if len(options.disk) == 0 else options.disk 225 system = createSystem(options.caches, 226 options.kernel, 227 options.bootscript, 228 options.machine_type, 234 if options [all...] |
/gem5/configs/ruby/ |
H A D | GPU_VIPER_Region.py | 75 def create(self, size, assoc, options): 85 def create(self, size, assoc, options): 92 def create(self, options, ruby_system, system): 96 self.L1Icache.create(options.l1i_size, options.l1i_assoc, options) 98 self.L1D0cache.create(options.l1d_size, options.l1d_assoc, options) 100 self.L1D1cache.create(options [all...] |
H A D | MOESI_hammer.py | 56 def create_system(options, full_system, system, dma_ports, bootmem, 76 block_size_bits = int(math.log(options.cacheline_size, 2)) 78 for i in range(options.num_cpus): 82 l1i_cache = L1Cache(size = options.l1i_size, 83 assoc = options.l1i_assoc, 86 l1d_cache = L1Cache(size = options.l1d_size, 87 assoc = options.l1d_assoc, 89 l2_cache = L2Cache(size = options.l2_size, 90 assoc = options.l2_assoc, 108 options [all...] |
H A D | GPU_RfO.py | 72 def create(self, options): 73 self.size = MemorySize(options.tcc_size) 74 self.size.value += (options.num_compute_units * 75 (MemorySize(options.tcp_size).value) * 76 options.tcc_dir_factor) / long(options.num_tccs) 77 self.start_index_bit = math.log(options.cacheline_size, 2) + \ 78 math.log(options.num_tccs, 2) 83 def create(self, options): 84 self.size = MemorySize(options [all...] |
H A D | Ruby.py | 74 # network options are in network/Network.py 76 # ruby mapping options 89 def setup_memory_controllers(system, ruby, dir_cntrls, options): 90 ruby.block_size_bytes = options.cacheline_size 97 if options.numa_high_bit: 98 dir_bits = int(math.log(options.num_dirs, 2)) 99 intlv_size = 2 ** (options.numa_high_bit - dir_bits + 1) 103 intlv_size = options.cacheline_size 119 MemConfig.get(options.mem_type), r, index, options [all...] |
H A D | GPU_VIPER_Baseline.py | 74 def create(self, size, assoc, options): 84 def create(self, size, assoc, options): 91 def create(self, options, ruby_system, system): 95 self.L1Icache.create(options.l1i_size, options.l1i_assoc, options) 97 self.L1D0cache.create(options.l1d_size, options.l1d_assoc, options) 99 self.L1D1cache.create(options [all...] |
H A D | Garnet_standalone.py | 45 def create_system(options, full_system, system, dma_ports, bootmem, 69 for i in range(options.num_cpus): 75 cache = L1Cache(size = options.l1d_size, 76 assoc = options.l1d_assoc) 104 options, bootmem, ruby_system, system) 117 topology = create_topology(all_cntrls, options)
|
H A D | MESI_Three_Level.py | 53 def create_system(options, full_system, system, dma_ports, bootmem, 73 assert (options.num_cpus % options.num_clusters == 0) 74 num_cpus_per_cluster = options.num_cpus / options.num_clusters 76 assert (options.num_l2caches % options.num_clusters == 0) 77 num_l2caches_per_cluster = options.num_l2caches / options.num_clusters 80 block_size_bits = int(math.log(options [all...] |
/gem5/configs/example/ |
H A D | garnet_synth_traffic.py | 87 # Add the ruby specific and protocol specific options 91 (options, args) = parser.parse_args() 98 if options.inj_vnet > 2: 100 "or 2 (5-flit) or -1 (random)" % (options.inj_vnet)) 105 num_packets_max=options.num_packets_max, 106 single_sender=options.single_sender_id, 107 single_dest=options.single_dest_id, 108 sim_cycles=options.sim_cycles, 109 traffic_type=options.synthetic, 110 inj_rate=options [all...] |
H A D | hmctest.py | 23 # TLM related options, currently optional in configs/common/MemConfig.py 27 # Elastic traces related options, currently optional in 51 def build_system(options): 61 system.tgen = [TrafficGen(config_file=options.tgen_cfg_file) for i in 62 range(options.num_tgen)] 64 MemConfig.config_mem(options, system) 66 if options.arch == "distributed": 67 for i in range(options.num_tgen): 71 if options.arch == "mixed": 72 for i in range(int(options [all...] |
/gem5/configs/network/ |
H A D | Network.py | 81 def create_network(options, ruby): 83 # Set the network classes based on the command line options 84 if options.network == "garnet2.0": 100 network = NetworkClass(ruby_system = ruby, topology = options.topology, 105 def init_network(options, network, InterfaceClass): 107 if options.network == "garnet2.0": 108 network.num_rows = options.mesh_rows 109 network.vcs_per_vnet = options.vcs_per_vnet 110 network.ni_flit_size = options.link_width_bits / 8 111 network.routing_algorithm = options [all...] |
/gem5/configs/dram/ |
H A D | sweep.py | 84 (options, args) = parser.parse_args() 110 options.mem_channels = 1 111 options.external_memory_system = 0 112 options.tlm_memory = 0 113 options.elastic_trace_en = 0 114 MemConfig.config_mem(options, system) 126 if options.addr_map == 0: 128 elif options.addr_map == 1: 187 generator = dram_generators[options.mode](system.tgen) 193 options [all...] |
/gem5/util/cpt_upgraders/ |
H A D | etherswitch.py | 4 options = cpt.items(sec) 5 for it in options:
|