Explorar o código

Fill where field according to mic_funcs, scc_funcs and cpu_funcs_name

Samuel Thibault %!s(int64=12) %!d(string=hai) anos
pai
achega
0ef9b0171a
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  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)