Sfoglia il codice sorgente

Fill where field according to mic_funcs, scc_funcs and cpu_funcs_name

Samuel Thibault 12 anni fa
parent
commit
0ef9b0171a
1 ha cambiato i file con 15 aggiunte e 0 eliminazioni
  1. 15 0
      src/core/task.c

+ 15 - 0
src/core/task.c

@@ -341,6 +341,21 @@ void _starpu_codelet_check_deprecated_fields(struct starpu_codelet *cl)
 	{
 		cl->where |= STARPU_OPENCL;
 	}
+
+	if (cl->mic_funcs[0] && is_where_unset)
+	{
+		cl->where |= STARPU_MIC;
+	}
+
+	if (cl->scc_funcs[0] && is_where_unset)
+	{
+		cl->where |= STARPU_SCC;
+	}
+
+	if (cl->cpu_funcs_name[0] && is_where_unset)
+	{
+		cl->where |= STARPU_MIC|STARPU_SCC;
+	}
 }
 
 void _starpu_task_check_deprecated_fields(struct starpu_task *task)