/gem5/tests/test-progs/threads/src/ |
H A D | threads.cpp | 63 unsigned cpus = thread::hardware_concurrency(); local 65 cout << "Running on " << cpus << " cores. "; local 84 thread **threads = new thread*[cpus]; 87 for (int i = 0; i < cpus - 1; i++) { 88 threads[i] = new thread(array_add, a, b, c, i, cpus, num_values); 91 array_add(a, b, c, cpus - 1, cpus, num_values); 95 for (int i = 0; i < cpus - 1; i++) {
|
/gem5/tests/configs/ |
H A D | switcheroo.py | 55 def __init__(self, cpus): 57 for (cpuno, cpu) in enumerate(cpus): 67 self.cpus = cpus 70 self.cur_cpu = (self.cur_cpu + 1) % len(self.cpus) 71 return self.cpus[self.cur_cpu] 74 return self.cpus[self.first_cpu]
|
H A D | o3-timing-mp-ruby.py | 33 cpus = [ DerivO3CPU(cpu_id=i) for i in range(nb_cores) ] variable 39 system = System(cpu = cpus, physmem = ruby_memory, membus = SystemXBar(), 47 for cpu in cpus: 51 # All cpus are associated with cpu_clk_domain
|
H A D | simple-atomic-mp-ruby.py | 33 cpus = [ AtomicSimpleCPU(cpu_id=i) for i in range(nb_cores) ] variable 39 system = System(cpu = cpus, physmem = ruby_memory, membus = SystemXBar(), 47 for cpu in cpus: 49 # All cpus are associated with cpu_clk_domain
|
H A D | memtest-ruby.py | 67 cpus = [ MemTest(percent_functional=50, variable 75 system = System(cpu = cpus) 86 # All cpus are associated with cpu_clk_domain 87 for cpu in cpus: 98 assert(len(cpus) == len(system.ruby._cpu_ports)) 105 cpus[i].port = ruby_port.slave
|
H A D | memtest.py | 36 cpus = [ MemTest() for i in range(nb_cores) ] variable 39 system = System(cpu = cpus, 60 for cpu in cpus: 61 # All cpus are associated with cpu_clk_domain
|
H A D | memtest-filter.py | 36 cpus = [ MemTest() for i in range(nb_cores) ] variable 39 system = System(cpu = cpus, 61 for cpu in cpus: 62 # All cpus are associated with cpu_clk_domain
|
H A D | simple-timing-mp-ruby.py | 62 cpus = [ TimingSimpleCPU(cpu_id=i) for i in range(nb_cores) ] variable 68 system = System(cpu = cpus, clk_domain = SrcClockDomain(clock = '1GHz'))
|
H A D | base_config.py | 87 cpus = [ self.cpu_class(clk_domain=cpu_clk_domain, 92 for c in cpus: 94 return cpus 331 cpus = [ cclass(clk_domain = cpu_clk_domain, 335 cpus[0].switched_out = False 336 return cpus
|
/gem5/tests/quick/se/00.hello.mp/ |
H A D | test.py | 37 for i, cpu in zip(range(len(cpus)), root.system.cpu):
|
/gem5/configs/common/ |
H A D | FileSystemConfig.py | 80 cpus = [obj for obj in system.descendants() if isinstance(obj, BaseCPU)] 90 for i,cpu in enumerate(cpus): 110 one_cpu = one_cpu.format(proc = i, num_cpus = len(cpus), 120 for i in xrange(len(cpus)): 131 file_append((cpudir, 'online'), '0-%d' % (len(cpus) - 1)) 132 file_append((cpudir, 'possible'), '0-%d' % (len(cpus) - 1)) 175 def register_cache(level, idu_type, size, line_size, assoc, cpus): 177 for i in cpus: 197 file_append((indexdir, 'shared_cpu_map'), hex_mask(cpus))
|
/gem5/tests/gem5/memory/ |
H A D | memtest-run.py | 36 cpus = [MemTest(max_loads = 1e5, progress_interval = 1e4) variable 40 system = System(cpu = cpus, 61 for cpu in cpus: 62 # All cpus are associated with cpu_clk_domain
|
/gem5/configs/example/ |
H A D | ruby_mem_test.py | 102 cpus = [ MemTest(max_loads = options.maxloads, variable 109 system = System(cpu = cpus, 144 assert(len(cpus) == len(system.ruby._cpu_ports)) 146 for (i, cpu) in enumerate(cpus):
|
H A D | garnet_synth_traffic.py | 104 cpus = [ GarnetSyntheticTraffic( variable 117 system = System(cpu = cpus, mem_ranges = [AddrRange(options.mem_size)]) 137 cpus[i].test = ruby_port.slave
|
/gem5/configs/splash2/ |
H A D | cluster.py | 55 help="Number of cpus in total", type="int") 157 # Define the clusters with their cpus 177 cluster.cpus = [TimingSimpleCPU(cpu_id = i + cluster.id, 180 all_cpus += cluster.cpus 190 cluster.cpus = [DerivO3CPU(cpu_id = i + cluster.id, 193 all_cpus += cluster.cpus 203 cluster.cpus = [AtomicSimpleCPU(cpu_id = i + cluster.id, 206 all_cpus += cluster.cpus 235 for cpu in cluster.cpus: 280 # Assign the workload to the cpus [all...] |
H A D | run.py | 52 help="Number of cpus in total", type="int") 77 print("Specify the number of cpus with -n") 178 # Define the cpus 184 cpus = [TimingSimpleCPU(cpu_id = i, variable 188 cpus = [DerivO3CPU(cpu_id = i, variable 192 cpus = [AtomicSimpleCPU(cpu_id = i, variable 199 system = System(cpu = cpus, physmem = SimpleMemory(), 218 for cpu in cpus: 266 # Assign the workload to the cpus 269 for cpu in cpus [all...] |
/gem5/configs/learning_gem5/part3/ |
H A D | ruby_caches_MI_example.py | 59 def setup(self, system, cpus, mem_ctrls): 78 [L1Cache(system, self, cpu) for cpu in cpus] + \ 89 ) for i in range(len(cpus))] 91 for i,c in enumerate(self.controllers[0:len(cpus)]): 107 for i,cpu in enumerate(cpus):
|
H A D | msi_caches.py | 57 def setup(self, system, cpus, mem_ctrls): 78 [L1Cache(system, self, cpu) for cpu in cpus] + \ 89 ) for i in range(len(cpus))] 109 for i,cpu in enumerate(cpus):
|
/gem5/util/dist/test/ |
H A D | test-2nodes-AArch64.sh | 74 --num-cpus=1 \
|
/gem5/configs/example/arm/ |
H A D | fs_bigLITTLE.py | 181 parser.add_argument("--big-cpus", type=int, default=1, 183 parser.add_argument("--little-cpus", type=int, default=1, 201 "sets max_insts_all_threads for cpus 0, 1, 3, 5 and 7 " 245 all_cpus += system.bigCluster.cpus 252 all_cpus += system.littleCluster.cpus 280 def _build_kvm(system, cpus): 286 if len(cpus) > 1: 289 for idx, cpu in enumerate(cpus):
|
H A D | devices.py | 128 self.cpus = [ self._cpu_type(cpu_id=system.numCpus() + idx, 132 for cpu in self.cpus: 145 for cpu in self.cpus: 157 for cpu in self.cpus: 166 for cpu in self.cpus:
|
/gem5/util/stats/ |
H A D | profile.py | 283 for run,cpus in self.data.iteritems(): 284 for cpu,data in cpus.iteritems(): 399 cpus = [ 0 ] 417 cpus = [ int(x) for x in a.split(',') ] 476 for cpu in cpus: 489 for cpu in cpus: 494 for cpu in cpus: 499 for cpu in cpus:
|
/gem5/configs/ruby/ |
H A D | MESI_Three_Level.py | 278 cpus = [i*num_cpus_per_cluster+j]) 284 cpus = [i*num_cpus_per_cluster+j]) 291 cpus = [i*num_cpus_per_cluster+j]) 299 cpus = [n for n in xrange(i*num_cpus_per_cluster, \
|
H A D | MOESI_AMD_Base.py | 289 # Technically this config can support an odd number of cpus, but the top 291 # the number of cpus does not equal the number of sequencers. Thus make 292 # sure that an even number of cpus is specified. 349 cpus = [i*2, i*2+1]) 356 cpus = [i*2]) 363 cpus = [i*2+1]) 370 cpus = [i*2, i*2+1]) 378 cpus = [n for n in
|
H A D | MOESI_hammer.py | 272 cpus = [i]) 278 cpus = [i]) 285 cpus = [i])
|