Explorar o código

Fix multi-implementation function checking, thanks Usman for the patch

Samuel Thibault %!s(int64=12) %!d(string=hai) anos
pai
achega
24f5129856
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      src/core/workers.c

+ 3 - 3
src/core/workers.c

@@ -84,15 +84,15 @@ static uint32_t _starpu_worker_exists_and_can_execute(struct starpu_task *task,
 			switch (arch)
 			{
 			case STARPU_CPU_WORKER:
-				if (task->cl->cpu_funcs[i] != NULL)
+				if (task->cl->cpu_funcs[impl] != NULL)
 					test_implementation = 1;
 				break;
 			case STARPU_CUDA_WORKER:
-				if (task->cl->cuda_funcs[i] != NULL)
+				if (task->cl->cuda_funcs[impl] != NULL)
 					test_implementation = 1;
 				break;
 			case STARPU_OPENCL_WORKER:
-				if (task->cl->opencl_funcs[i] != NULL)
+				if (task->cl->opencl_funcs[impl] != NULL)
 					test_implementation = 1;
 				break;
 			default: