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 --- 73 unchanged lines hidden (view full) --- 82 network.routers.append(self.router) 83 84 for node in self.nodes: 85 if type(node) == Cluster: 86 node.makeTopology(options, network, IntLink, ExtLink, Router) 87 88 # connect this cluster to the router 89 link_out = IntLink(link_id=self.num_int_links(), src_node=self.router, |
90 dst_node=node.router) |
91 link_in = IntLink(link_id=self.num_int_links(), src_node=node.router, |
92 dst_node=self.router) |
93 94 if node.extBW: 95 link_out.bandwidth_factor = node.extBW 96 link_in.bandwidth_factor = node.extBW 97 98 # if there is an internal b/w for this node 99 # and no ext b/w to override 100 elif self.intBW: --- 28 unchanged lines hidden --- |