void DragonflyZone::generate_routers(const s4u::ClusterCallbacks& set_callbacks)
{
- unsigned long id = 2 * num_groups_ * num_chassis_per_group_ * num_blades_per_chassis_ * num_nodes_per_blade_;
+ unsigned long id = 2UL * num_groups_ * num_chassis_per_group_ * num_blades_per_chassis_ * num_nodes_per_blade_;
/* get limiter for this router */
auto get_limiter = [this, &id, &set_callbacks](unsigned int i, unsigned int j,
unsigned int k) -> resource::LinkImpl* {
void TorusZone::create_torus_links(unsigned long id, int rank, unsigned long position)
{
/* Create all links that exist in the torus. Each rank creates @a dimensions-1 links */
- int dim_product = 1; // Needed to calculate the next neighbor_id
+ unsigned long dim_product = 1; // Needed to calculate the next neighbor_id
for (unsigned long j = 0; j < dimensions_.size(); j++) {
unsigned long current_dimension =