瀏覽代碼

tests/sched_ctx/sched_ctx_policy_data.c: followup to #21171, only consider CPU workers

Nathalie Furmento 8 年之前
父節點
當前提交
3102ef829c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/sched_ctx/sched_ctx_policy_data.c

+ 1 - 1
tests/sched_ctx/sched_ctx_policy_data.c

@@ -41,7 +41,7 @@ int main(int argc, char **argv)
 	}
 
 	procs = (int*)malloc(nprocs*sizeof(int));
-	starpu_worker_get_ids_by_type(STARPU_ANY_WORKER, procs, nprocs);
+	starpu_worker_get_ids_by_type(STARPU_CPU_WORKER, procs, nprocs);
 
 	sched_ctx = starpu_sched_ctx_create(procs, nprocs, "my_context", 0);
 	ptr = starpu_sched_ctx_get_policy_data(sched_ctx);