Преглед на файлове

tests/sched_policies: add dummy implementations for cuda and opencl, they are needed when using the scheduler heteroprio with its default initialisation function

Nathalie Furmento преди 10 години
родител
ревизия
ff2af1864e
променени са 2 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 4 0
      tests/sched_policies/prio.c
  2. 2 0
      tests/sched_policies/simple_deps.c

+ 4 - 0
tests/sched_policies/prio.c

@@ -65,12 +65,16 @@ run(struct starpu_sched_policy *policy)
 	struct starpu_codelet clA =
 	struct starpu_codelet clA =
 	{
 	{
 		.cpu_funcs = {A},
 		.cpu_funcs = {A},
+		.opencl_funcs = {A},
+		.cuda_funcs = {A},
 		.nbuffers = 0
 		.nbuffers = 0
 	};
 	};
 
 
 	struct starpu_codelet clB =
 	struct starpu_codelet clB =
 	{
 	{
 		.cpu_funcs = {B},
 		.cpu_funcs = {B},
+		.opencl_funcs = {B},
+		.cuda_funcs = {B},
 		.nbuffers = 0
 		.nbuffers = 0
 	};
 	};
 
 

+ 2 - 0
tests/sched_policies/simple_deps.c

@@ -46,6 +46,8 @@ run(struct starpu_sched_policy *policy)
 	struct starpu_codelet cl =
 	struct starpu_codelet cl =
 	{
 	{
 		.cpu_funcs = {dummy},
 		.cpu_funcs = {dummy},
+		.opencl_funcs = {dummy},
+		.cuda_funcs = {dummy},
 		.nbuffers = 0
 		.nbuffers = 0
 	};
 	};