瀏覽代碼

make sure we don't run a tool with not many workers on a trace with many workers

Samuel Thibault 13 年之前
父節點
當前提交
3039f411b8
共有 1 個文件被更改,包括 2 次插入 和 0 次删除
  1. 2 0
      src/debug/traces/starpu_fxt.c

+ 2 - 0
src/debug/traces/starpu_fxt.c

@@ -144,6 +144,8 @@ static void register_worker_id(unsigned long tid, int workerid)
 
 	HASH_FIND(hh, worker_ids, &tid, sizeof(tid), entry);
 
+	STARPU_ASSERT_MSG(workerid < STARPU_NMAXWORKERS, "Too many workers in this trace, please increase the maximum number of CPUs and GPUs to the same value as was used for execution");
+
 	/* only register a thread once */
 	STARPU_ASSERT(entry == NULL);