@@ -575,7 +575,7 @@ int tm_topology_add_binding_constraints(char *constraints_filename, tm_topology
575
575
}
576
576
577
577
578
- void topology_numbering_cpy (tm_topology_t * topology ,int * * numbering ,int * nb_nodes )
578
+ void topology_numbering_cpy (tm_topology_t * topology ,int * * numbering_loc ,int * nb_nodes )
579
579
{
580
580
int nb_levels ;
581
581
unsigned int vl = tm_get_verbose_level ();
@@ -584,8 +584,8 @@ void topology_numbering_cpy(tm_topology_t *topology,int **numbering,int *nb_node
584
584
* nb_nodes = topology -> nb_nodes [nb_levels - 1 ];
585
585
if (vl >= INFO )
586
586
printf ("nb_nodes=%d\n" ,* nb_nodes );
587
- * numbering = (int * )MALLOC (sizeof (int )* (* nb_nodes ));
588
- memcpy (* numbering ,topology -> node_id ,sizeof (int )* (* nb_nodes ));
587
+ * numbering_loc = (int * )MALLOC (sizeof (int )* (* nb_nodes ));
588
+ memcpy (* numbering_loc ,topology -> node_id ,sizeof (int )* (* nb_nodes ));
589
589
}
590
590
591
591
void topology_arity_cpy (tm_topology_t * topology ,int * * arity ,int * nb_levels )
@@ -699,7 +699,7 @@ void optimize_arity(int **arity, double **cost, int *nb_levels,int n)
699
699
700
700
void tm_optimize_topology (tm_topology_t * * topology ){
701
701
int * arity = NULL ,nb_levels ;
702
- int * numbering = NULL ,nb_nodes ;
702
+ int * numbering_loc = NULL ,nb_nodes ;
703
703
tm_topology_t * new_topo ;
704
704
double * cost ;
705
705
unsigned int vl = tm_get_verbose_level ();
@@ -710,13 +710,13 @@ void tm_optimize_topology(tm_topology_t **topology){
710
710
tm_display_arity (* topology );
711
711
712
712
topology_arity_cpy (* topology ,& arity ,& nb_levels );
713
- topology_numbering_cpy (* topology ,& numbering ,& nb_nodes );
713
+ topology_numbering_cpy (* topology ,& numbering_loc ,& nb_nodes );
714
714
topology_constraints_cpy (* topology ,& constraints ,& nb_constraints );
715
715
topology_cost_cpy (* topology ,& cost );
716
716
717
717
718
718
optimize_arity (& arity ,& cost ,& nb_levels ,nb_levels - 2 );
719
- new_topo = tm_build_synthetic_topology (arity , NULL , nb_levels ,numbering ,nb_nodes );
719
+ new_topo = tm_build_synthetic_topology (arity , NULL , nb_levels ,numbering_loc ,nb_nodes );
720
720
new_topo -> cost = cost ;
721
721
new_topo -> constraints = constraints ;
722
722
new_topo -> nb_constraints = nb_constraints ;
@@ -736,7 +736,7 @@ void tm_optimize_topology(tm_topology_t **topology){
736
736
tm_display_arity (new_topo );
737
737
}
738
738
FREE (arity );
739
- FREE (numbering );
739
+ FREE (numbering_loc );
740
740
tm_free_topology (* topology );
741
741
742
742
* topology = new_topo ;
0 commit comments