Explorar el Código

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

Samuel Thibault hace 4 años
padre
commit
f9e0bd04d8
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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)