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

Don't bother with executing datawizard progression when there is only one memory node

Samuel Thibault лет назад: 4
Родитель
Сommit
f9e0bd04d8
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/datawizard/datawizard.c

+ 1 - 0
src/datawizard/datawizard.c

@@ -133,6 +133,7 @@ int __starpu_datawizard_progress(unsigned may_alloc, unsigned push_requests)
         int ret = 0;
 	unsigned nnodes = starpu_memory_nodes_get_count();
 
+	if (nnodes > 1)
         for (memnode = 0; memnode < nnodes; memnode++)
         {
                 if (_starpu_worker_drives_memory[current_worker_id][memnode] == 1)