Quellcode durchsuchen

datawizard/interfaces/data_interface.c: initialize rank to -1

Nathalie Furmento vor 15 Jahren
Ursprung
Commit
a859208d43
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      src/datawizard/interfaces/data_interface.c

+ 1 - 0
src/datawizard/interfaces/data_interface.c

@@ -40,6 +40,7 @@ static void _starpu_register_new_data(starpu_data_handle handle,
 	handle->father_handle = NULL;
 	handle->father_handle = NULL;
 	handle->sibling_index = 0; /* could be anything for the root */
 	handle->sibling_index = 0; /* could be anything for the root */
 	handle->depth = 1; /* the tree is just a node yet */
 	handle->depth = 1; /* the tree is just a node yet */
+        handle->rank = -1; /* invalid until set */
 
 
 	handle->is_not_important = 0;
 	handle->is_not_important = 0;