PerfectSwitch.cc (6372:f1a41ea3bbab) PerfectSwitch.cc (6846:60e0df8086f0)
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

179 NetDest msg_destinations = net_msg_ptr->getInternalDestination();
180
181 // Unfortunately, the token-protocol sends some
182 // zero-destination messages, so this assert isn't valid
183 // assert(msg_destinations.count() > 0);
184
185 assert(m_link_order.size() == m_routing_table.size());
186 assert(m_link_order.size() == m_out.size());
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

179 NetDest msg_destinations = net_msg_ptr->getInternalDestination();
180
181 // Unfortunately, the token-protocol sends some
182 // zero-destination messages, so this assert isn't valid
183 // assert(msg_destinations.count() > 0);
184
185 assert(m_link_order.size() == m_routing_table.size());
186 assert(m_link_order.size() == m_out.size());
187//changed by SS
187
188 if (m_network_ptr->getAdaptiveRouting()) {
189 if (m_network_ptr->isVNetOrdered(vnet)) {
190 // Don't adaptively route
191 for (int outlink=0; outlink<m_out.size(); outlink++) {
192 m_link_order[outlink].m_link = outlink;
193 m_link_order[outlink].m_value = 0;
194 }
195 } else {

--- 121 unchanged lines hidden ---
188 if (m_network_ptr->getAdaptiveRouting()) {
189 if (m_network_ptr->isVNetOrdered(vnet)) {
190 // Don't adaptively route
191 for (int outlink=0; outlink<m_out.size(); outlink++) {
192 m_link_order[outlink].m_link = outlink;
193 m_link_order[outlink].m_value = 0;
194 }
195 } else {

--- 121 unchanged lines hidden ---