@@ -575,7 +575,7 @@ int tm_topology_add_binding_constraints(char *constraints_filename, tm_topology
575575}
576576
577577
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 )
579579{
580580 int nb_levels ;
581581 unsigned int vl = tm_get_verbose_level ();
@@ -584,8 +584,8 @@ void topology_numbering_cpy(tm_topology_t *topology,int **numbering,int *nb_node
584584 * nb_nodes = topology -> nb_nodes [nb_levels - 1 ];
585585 if (vl >= INFO )
586586 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 ));
589589}
590590
591591void 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)
699699
700700void tm_optimize_topology (tm_topology_t * * topology ){
701701 int * arity = NULL ,nb_levels ;
702- int * numbering = NULL ,nb_nodes ;
702+ int * numbering_loc = NULL ,nb_nodes ;
703703 tm_topology_t * new_topo ;
704704 double * cost ;
705705 unsigned int vl = tm_get_verbose_level ();
@@ -710,13 +710,13 @@ void tm_optimize_topology(tm_topology_t **topology){
710710 tm_display_arity (* topology );
711711
712712 topology_arity_cpy (* topology ,& arity ,& nb_levels );
713- topology_numbering_cpy (* topology ,& numbering ,& nb_nodes );
713+ topology_numbering_cpy (* topology ,& numbering_loc ,& nb_nodes );
714714 topology_constraints_cpy (* topology ,& constraints ,& nb_constraints );
715715 topology_cost_cpy (* topology ,& cost );
716716
717717
718718 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 );
720720 new_topo -> cost = cost ;
721721 new_topo -> constraints = constraints ;
722722 new_topo -> nb_constraints = nb_constraints ;
@@ -736,7 +736,7 @@ void tm_optimize_topology(tm_topology_t **topology){
736736 tm_display_arity (new_topo );
737737 }
738738 FREE (arity );
739- FREE (numbering );
739+ FREE (numbering_loc );
740740 tm_free_topology (* topology );
741741
742742 * topology = new_topo ;
0 commit comments