Browse Source

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 4 years ago
parent
commit
9fd0735b6f
1 changed files with 2 additions and 1 deletions
  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 */
 				/* Prefetching more there would make the situation even worse */
 				break;
 				break;
 		}
 		}
+		else
+			(*pushed)++;
 
 
-		(*pushed)++;
 		if (starpu_timing_now() - start >= MAX_PUSH_TIME)
 		if (starpu_timing_now() - start >= MAX_PUSH_TIME)
 		{
 		{
 			/* We have spent a lot of time doing requests, skip pushing more for now */
 			/* We have spent a lot of time doing requests, skip pushing more for now */