Jiayi Huang has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/38975 )
Change subject: configs: Fix numa_nodes in MeshDirCorners_XY.py config
......................................................................
configs: Fix numa_nodes in MeshDirCorners_XY.py config
The 'numa_nodes' in makeTopology() cannot be accessed in
registerTopology().
Change-Id: I2ac5c9c841a3d1e55e54995f93108c9532407bb1
---
M configs/topologies/MeshDirCorners_XY.py
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/configs/topologies/MeshDirCorners_XY.py
b/configs/topologies/MeshDirCorners_XY.py
index e0aea52..dc6e4d7 100644
--- a/configs/topologies/MeshDirCorners_XY.py
+++ b/configs/topologies/MeshDirCorners_XY.py
@@ -100,24 +100,24 @@
# NUMA Node for each quadrant
# With odd columns or rows, the nodes will be unequal
- numa_nodes = [ [], [], [], []]
+ self.numa_nodes = [ [], [], [], []]
for i in range(num_routers):
if i % num_columns < num_columns / 2 and \
i < num_routers / 2:
- numa_nodes[0].append(i)
+ self.numa_nodes[0].append(i)
elif i % num_columns >= num_columns / 2 and \
i < num_routers / 2:
- numa_nodes[1].append(i)
+ self.numa_nodes[1].append(i)
elif i % num_columns < num_columns / 2 and \
i >= num_routers / 2:
- numa_nodes[2].append(i)
+ self.numa_nodes[2].append(i)
else:
- numa_nodes[3].append(i)
+ self.numa_nodes[3].append(i)
- num_numa_nodes = 0
- for n in numa_nodes:
+ self.num_numa_nodes = 0
+ for n in self.numa_nodes:
if n:
- num_numa_nodes += 1
+ self.num_numa_nodes += 1
# Connect the dir nodes to the corners.
ext_links.append(ExtLink(link_id=link_count, ext_node=dir_nodes[0],
@@ -215,9 +215,9 @@
# Register nodes with filesystem
def registerTopology(self, options):
i = 0
- for n in numa_nodes:
+ for n in self.numa_nodes:
if n:
FileSystemConfig.register_node(n,
- MemorySize(options.mem_size) // num_numa_nodes, i)
+ MemorySize(options.mem_size) // self.num_numa_nodes, i)
i += 1
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/38975
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: I2ac5c9c841a3d1e55e54995f93108c9532407bb1
Gerrit-Change-Number: 38975
Gerrit-PatchSet: 1
Gerrit-Owner: Jiayi Huang <[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