Explorar o código

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

Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
f9e0bd04d8
Modificáronse 1 ficheiros con 1 adicións e 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)