|
@@ -118,7 +118,11 @@ bool route_init()
|
|
uint32_t max_round1b_msgs_to_adj_rtr =
|
|
uint32_t max_round1b_msgs_to_adj_rtr =
|
|
(g_teems_config.num_routing_nodes-1)*(g_teems_config.num_routing_nodes-1);
|
|
(g_teems_config.num_routing_nodes-1)*(g_teems_config.num_routing_nodes-1);
|
|
// Ensure columnroute constraint that column height is >= 2*(num_routing_nodes-1)^2
|
|
// Ensure columnroute constraint that column height is >= 2*(num_routing_nodes-1)^2
|
|
- uint32_t max_round1a_msgs = std::max(max_round1_msgs, 2*max_round1b_msgs_to_adj_rtr);
|
|
|
|
|
|
+ // and round up to a multiple of num_routing_nodes
|
|
|
|
+ uint32_t max_round1a_msgs = CEILDIV(
|
|
|
|
+ std::max(max_round1_msgs, 2*max_round1b_msgs_to_adj_rtr),
|
|
|
|
+ g_teems_config.num_routing_nodes) *
|
|
|
|
+ g_teems_config.num_routing_nodes;
|
|
uint32_t max_round1c_msgs = max_round1a_msgs;
|
|
uint32_t max_round1c_msgs = max_round1a_msgs;
|
|
|
|
|
|
/*
|
|
/*
|