diff options
author | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-01-28 16:53:47 +0000 |
---|---|---|
committer | Andreas Sandberg <andreas.sandberg@arm.com> | 2019-02-25 14:24:08 +0000 |
commit | debb5daace15e17bae7c07937852f6f738633c85 (patch) | |
tree | c8b2f5e12bcf65633f1e9df949cd04bcdfae7a21 /tests/configs/gpu-ruby.py | |
parent | d63f735663d710839f79a4b88af67da968995168 (diff) | |
download | gem5-debb5daace15e17bae7c07937852f6f738633c85.tar.xz |
tests: Update test scripts to work with Python 3
Change-Id: I71b1e595765fed9e9f234c9722c33ac5348d4f11
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15999
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Diffstat (limited to 'tests/configs/gpu-ruby.py')
-rw-r--r-- | tests/configs/gpu-ruby.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/configs/gpu-ruby.py b/tests/configs/gpu-ruby.py index e846dbaf6..155775a0b 100644 --- a/tests/configs/gpu-ruby.py +++ b/tests/configs/gpu-ruby.py @@ -197,7 +197,7 @@ if options.TLB_config == "perLane": # List of compute units; one GPU can have multiple compute units compute_units = [] -for i in xrange(n_cu): +for i in range(n_cu): compute_units.append(ComputeUnit(cu_id = i, perLaneTLB = per_lane, num_SIMDs = options.simds_per_cu, wfSize = options.wf_size, @@ -227,8 +227,8 @@ for i in xrange(n_cu): options.ldsBankConflictPenalty))) wavefronts = [] vrfs = [] - for j in xrange(options.simds_per_cu): - for k in xrange(shader.n_wf): + for j in range(options.simds_per_cu): + for k in range(int(shader.n_wf)): wavefronts.append(Wavefront(simdId = j, wf_slot_id = k)) vrfs.append(VectorRegisterFile(simd_id=j, num_regs_per_simd=options.vreg_file_size)) @@ -308,15 +308,15 @@ gpu_port_idx = len(system.ruby._cpu_ports) \ gpu_port_idx = gpu_port_idx - options.num_cp * 2 wavefront_size = options.wf_size -for i in xrange(n_cu): +for i in range(n_cu): # The pipeline issues wavefront_size number of uncoalesced requests # in one GPU issue cycle. Hence wavefront_size mem ports. - for j in xrange(wavefront_size): + for j in range(wavefront_size): system.cpu[shader_idx].CUs[i].memory_port[j] = \ system.ruby._cpu_ports[gpu_port_idx].slave[j] gpu_port_idx += 1 -for i in xrange(n_cu): +for i in range(n_cu): if i > 0 and not i % options.cu_per_sqc: gpu_port_idx += 1 system.cpu[shader_idx].CUs[i].sqc_port = \ |