瀏覽代碼

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

Samuel Thibault 13 年之前
父節點
當前提交
245667fba9
共有 1 個文件被更改,包括 5 次插入4 次删除
  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;