Просмотр исходного кода

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

Samuel Thibault лет назад: 12
Родитель
Сommit
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);