Explorar el Código

Break early, no need to check all nodes

Samuel Thibault hace 4 años
padre
commit
00a4a197f7
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/datawizard/coherency.c

+ 3 - 0
src/datawizard/coherency.c

@@ -1436,7 +1436,10 @@ unsigned starpu_data_is_on_node(starpu_data_handle_t handle, unsigned node)
 		for (i = 0; i < nnodes; i++)
 		{
 			if (handle->per_node[node].request[i])
+			{
 				ret = 1;
+				break;
+			}
 		}
 
 	}