ソースを参照

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;