Преглед изворни кода

Enable forkjoin parallel workers only if we have hwloc, otherwise we don't have code to bind/unbind threads.

Samuel Thibault пре 13 година
родитељ
комит
db359e2621
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      src/core/workers.c

+ 5 - 1
src/core/workers.c

@@ -168,7 +168,11 @@ int starpu_combined_worker_can_execute_task(unsigned workerid, struct starpu_tas
 	}
 	else
 	{
-		if ((cl->type == STARPU_SPMD) || (cl->type == STARPU_FORKJOIN))
+		if ((cl->type == STARPU_SPMD)
+#ifdef STARPU_HAVE_HWLOC
+				|| (cl->type == STARPU_FORKJOIN)
+#endif
+				)
 		{
 			/* TODO we should add other types of constraints */