Kyle Roarty has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/36159 )
Change subject: configs: python3 compatibility for apu_se
......................................................................
configs: python3 compatibility for apu_se
This patch changes xrange to range, as the former doesn't exist in
python3.
Change-Id: Ibe2c1fb073194e3e0713bb1718f2e323f7c4e397
---
M configs/example/apu_se.py
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/configs/example/apu_se.py b/configs/example/apu_se.py
index ba0d9ea..6faca5f 100644
--- a/configs/example/apu_se.py
+++ b/configs/example/apu_se.py
@@ -299,8 +299,8 @@
vrf_pool_mgrs = []
srfs = []
srf_pool_mgrs = []
- 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(shader.n_wf):
wavefronts.append(Wavefront(simdId = j, wf_slot_id = k,
wf_size = options.wf_size))
vrf_pool_mgrs.append(SimplePoolManager(pool_size = \
@@ -593,7 +593,7 @@
system.ruby._cpu_ports[gpu_port_idx].slave
gpu_port_idx = 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_scalar_cache:
print("incrementing idx on ", i)
gpu_port_idx += 1
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/36159
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: Ibe2c1fb073194e3e0713bb1718f2e323f7c4e397
Gerrit-Change-Number: 36159
Gerrit-PatchSet: 1
Gerrit-Owner: Kyle Roarty <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s