Explorar el Código

src/datawizard/memory_manager.c: total used size can be equal to available global size (thanks to Corentin Salingue for reporting the bug)

Nathalie Furmento hace 12 años
padre
commit
486fb532b2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/datawizard/memory_manager.c

+ 1 - 1
src/datawizard/memory_manager.c

@@ -59,7 +59,7 @@ int _starpu_memory_manager_can_allocate_size(size_t size, unsigned node)
 		used_size[node] += size;
 		ret = 1;
 	}
-	else if (used_size[node] + size < global_size[node])
+	else if (used_size[node] + size <= global_size[node])
 	{
 		used_size[node] += size;
 		ret = 1;