Sfoglia il codice sorgente

fix worker_exists for MIC/SCC

Samuel Thibault 12 anni fa
parent
commit
8aea96c05d
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  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();
 			}