Prechádzať zdrojové kódy

Note TODO about hogging the GPU memory with data we will reuse much later

Samuel Thibault 4 rokov pred
rodič
commit
612ede07f5
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      src/datawizard/coherency.c

+ 3 - 0
src/datawizard/coherency.c

@@ -630,6 +630,9 @@ struct _starpu_data_request *_starpu_create_request_to_fetch_data(starpu_data_ha
 		hop_dst_replicate = (hop != nhops - 1)?&handle->per_node[hop_dst_node]:dst_replicate;
 
 		/* Try to reuse a request if possible */
+#ifdef STARPU_DEVEL
+#warning We do not actually want to reuse an existing request when our request is for a task with low priority, that will get executed much later. We don't want to wire down the data in between, at worse that could hog the complete gpu memory...
+#endif
 		r = _starpu_search_existing_data_request(hop_dst_replicate,
 				(mode & STARPU_R)?hop_src_node:hop_dst_node,
 							 mode, is_prefetch);