Explorar el Código

fix worker_exists for MIC/SCC

Samuel Thibault hace 13 años
padre
commit
8aea96c05d
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      src/core/workers.c

+ 8 - 0
src/core/workers.c

@@ -123,6 +123,14 @@ static uint32_t _starpu_worker_exists_and_can_execute(struct starpu_task *task,
 				if (task->cl->opencl_funcs[impl] != NULL)
 					test_implementation = 1;
 				break;
+			case STARPU_MIC_WORKER:
+				if (task->cl->cpu_funcs_name[impl] != NULL || task->cl->mic_funcs[impl] != NULL)
+					test_implementation = 1;
+				break;
+			case STARPU_SCC_WORKER:
+				if (task->cl->cpu_funcs_name[impl] != NULL || task->cl->mic_funcs[impl] != NULL)
+					test_implementation = 1;
+				break;
 			default:
 				STARPU_ABORT();
 			}