Explorar o código

data_requests: do not advertise a push when we ran out of memory

advertising a push would make the GPU worker stay awake, and continue
trying to push data while that won't work any better unless something
actually happens.
Samuel Thibault %!s(int64=4) %!d(string=hai) anos
pai
achega
9fd0735b6f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/datawizard/data_request.c

+ 2 - 1
src/datawizard/data_request.c

@@ -618,8 +618,9 @@ static int __starpu_handle_node_data_requests(struct _starpu_data_request_prio_l
 				/* Prefetching more there would make the situation even worse */
 				break;
 		}
+		else
+			(*pushed)++;
 
-		(*pushed)++;
 		if (starpu_timing_now() - start >= MAX_PUSH_TIME)
 		{
 			/* We have spent a lot of time doing requests, skip pushing more for now */