Sfoglia il codice sorgente

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

Samuel Thibault 4 anni fa
parent
commit
f9e0bd04d8
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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)