Bobby R. Bruce has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/43144 )

Change subject: configs: Use integer division in MESI_Three_Level_HTM.py
......................................................................

configs: Use integer division in MESI_Three_Level_HTM.py

num_cpus_per_cluster and num_l2caches_per_cluster need to be integer
as we are iterating over those variables

Cherry-picked from:
https://gem5-review.googlesource.com/c/public/gem5/+/42883

Change-Id: Ifc1f9cf06b36044289a0ba5e54666f1af2587fca
---
M configs/ruby/MESI_Three_Level_HTM.py
1 file changed, 2 insertions(+), 2 deletions(-)



diff --git a/configs/ruby/MESI_Three_Level_HTM.py b/configs/ruby/MESI_Three_Level_HTM.py
index 89ca93c..b6b1c7f 100644
--- a/configs/ruby/MESI_Three_Level_HTM.py
+++ b/configs/ruby/MESI_Three_Level_HTM.py
@@ -78,10 +78,10 @@
     dma_cntrl_nodes = []

     assert (options.num_cpus % options.num_clusters == 0)
-    num_cpus_per_cluster = options.num_cpus / options.num_clusters
+    num_cpus_per_cluster = options.num_cpus // options.num_clusters

     assert (options.num_l2caches % options.num_clusters == 0)
-    num_l2caches_per_cluster = options.num_l2caches / options.num_clusters
+    num_l2caches_per_cluster = options.num_l2caches // options.num_clusters

     l2_bits = int(math.log(num_l2caches_per_cluster, 2))
     block_size_bits = int(math.log(options.cacheline_size, 2))

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/43144
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: hotfix-v20-1-0-5
Gerrit-Change-Id: Ifc1f9cf06b36044289a0ba5e54666f1af2587fca
Gerrit-Change-Number: 43144
Gerrit-PatchSet: 1
Gerrit-Owner: Bobby R. Bruce <bbr...@ucdavis.edu>
Gerrit-CC: Giacomo Travaglini <giacomo.travagl...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to