浏览代码

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 年之前
父节点
当前提交
9fd0735b6f
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 */