Cluster.py (13774:a1be2a0c55f2) Cluster.py (13885:d10ea5e56cb0)
1# Copyright (c) 2012 Advanced Micro Devices, Inc.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 71 unchanged lines hidden (view full) ---

80 """
81
82 # make a router to connect all of the nodes
83 self.router = Router(router_id=self.num_routers())
84 network.routers.append(self.router)
85
86 for node in self.nodes:
87 if type(node) == Cluster:
1# Copyright (c) 2012 Advanced Micro Devices, Inc.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 71 unchanged lines hidden (view full) ---

80 """
81
82 # make a router to connect all of the nodes
83 self.router = Router(router_id=self.num_routers())
84 network.routers.append(self.router)
85
86 for node in self.nodes:
87 if type(node) == Cluster:
88 node.makeTopology(options, network, IntLink, ExtLink, Router)
88 node.makeTopology(options, network, IntLink,
89 ExtLink, Router)
89
90 # connect this cluster to the router
91 link_out = IntLink(link_id=self.num_int_links(), src_node=self.router,
92 dst_node=node.router)
93 link_in = IntLink(link_id=self.num_int_links(), src_node=node.router,
94 dst_node=self.router)
95
96 if node.extBW:

--- 34 unchanged lines hidden ---
90
91 # connect this cluster to the router
92 link_out = IntLink(link_id=self.num_int_links(), src_node=self.router,
93 dst_node=node.router)
94 link_in = IntLink(link_id=self.num_int_links(), src_node=node.router,
95 dst_node=self.router)
96
97 if node.extBW:

--- 34 unchanged lines hidden ---