Explorar el Código

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 hace 10 años
padre
commit
ff2af1864e
Se han modificado 2 ficheros con 6 adiciones y 0 borrados
  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 =
 	{
 		.cpu_funcs = {A},
+		.opencl_funcs = {A},
+		.cuda_funcs = {A},
 		.nbuffers = 0
 	};
 
 	struct starpu_codelet clB =
 	{
 		.cpu_funcs = {B},
+		.opencl_funcs = {B},
+		.cuda_funcs = {B},
 		.nbuffers = 0
 	};
 

+ 2 - 0
tests/sched_policies/simple_deps.c

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