Explorar el Código

If the model does not have a symbol, try to use the codelet name instead

Samuel Thibault hace 13 años
padre
commit
245667fba9
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      src/core/jobs.c

+ 5 - 4
src/core/jobs.c

@@ -415,11 +415,12 @@ const char *_starpu_get_model_name(struct _starpu_job *j)
 		return NULL;
 
 	struct starpu_task *task = j->task;
-        if (task && task->cl
-            && task->cl->model
-            && task->cl->model->symbol)
+        if (task && task->cl) {
+            if (task->cl->model && task->cl->model->symbol)
                 return task->cl->model->symbol;
-        else
+	    else
+		return task->cl->name;
+	} else
 	{
 #ifdef STARPU_USE_FXT
                 return j->model_name;