@@ -199,7 +199,7 @@ void add_to_bucket(int id,int i,int j,bucket_list_t bucket_list)
199
199
/* display_bucket(bucket);*/
200
200
if (verbose_level >= DEBUG ){
201
201
printf ("Extending bucket %d (%p) from size %d to size %d!\n" ,
202
- id , (void * )bucket -> bucket , bucket -> nb_elem , bucket -> nb_elem + size );
202
+ id ,(void * )bucket -> bucket , bucket -> nb_elem , bucket -> nb_elem + size );
203
203
}
204
204
205
205
bucket -> bucket = (coord * )REALLOC (bucket -> bucket ,sizeof (coord )* (size + bucket -> bucket_len ));
@@ -525,7 +525,7 @@ void partial_update_val (int nb_args, void **args, int thread_id){
525
525
526
526
if (nb_args != 5 ){
527
527
if (verbose_level >= ERROR )
528
- fprintf (stderr ,"(Thread: %d) Wrong number of args in %s: %d\n" ,thread_id , __func__ , nb_args );
528
+ fprintf (stderr ,"(Thread: %d) Wrong number of args in %s: %d\n" ,thread_id , __FUNCTION__ , nb_args );
529
529
exit (-1 );
530
530
}
531
531
@@ -648,6 +648,7 @@ double bucket_grouping(tm_affinity_mat_t *aff_mat,tm_tree_t *tab_node, tm_tree_t
648
648
wait_work_completion (works [id ]);
649
649
val += tab_val [id ];
650
650
FREE (works [id ]-> args );
651
+ destroy_work (works [id ]);
651
652
}
652
653
653
654
0 commit comments