Просмотр исходного кода

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

Nathalie Furmento лет назад: 15
Родитель
Сommit
a859208d43
1 измененных файлов с 1 добавлено и 0 удалено
  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->sibling_index = 0; /* could be anything for the root */
 	handle->depth = 1; /* the tree is just a node yet */
+        handle->rank = -1; /* invalid until set */
 
 	handle->is_not_important = 0;