Browse Source

starpu_replay: Make sure we have the arch comb for the targetted workerid

Samuel Thibault 6 years ago
parent
commit
8c4287f7e9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tools/starpu_replay.c

+ 3 - 3
tools/starpu_replay.c

@@ -679,6 +679,9 @@ int main(int argc, char **argv)
 
 					}
 
+					struct starpu_perfmodel_arch *arch = starpu_worker_get_perf_archtype(workerid, 0);
+
+					unsigned comb = starpu_perfmodel_arch_comb_add(arch->ndevices, arch->devices);
 					unsigned narch = starpu_perfmodel_get_narch_combs();
 
 					struct task_arg *arg;
@@ -689,9 +692,6 @@ int main(int argc, char **argv)
 
 					if (realmodel == NULL)
 					{
-						struct starpu_perfmodel_arch *arch = starpu_worker_get_perf_archtype(workerid, 0);
-
-						unsigned comb = starpu_perfmodel_arch_comb_get(arch->ndevices, arch->devices);
 						/* Erf, do without perfmodel, for execution there */
 						task->task.workerid = workerid;
 						task->task.execute_on_a_specific_worker = 1;