Browse Source

fix non-MIC build

Samuel Thibault 12 years ago
parent
commit
38c509e1ce
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/core/combined_workers.c

+ 3 - 1
src/core/combined_workers.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010-2012  Université de Bordeaux 1
+ * Copyright (C) 2010-2013  Université de Bordeaux 1
  * Copyright (C) 2010, 2011  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -113,8 +113,10 @@ int starpu_combined_worker_assign_workerid(int nworkers, int workerid_array[])
 		combined_worker->perf_arch = (enum starpu_perfmodel_archtype) (STARPU_CPU_DEFAULT + nworkers - 1);
 		combined_worker->worker_mask = STARPU_CPU;
 	}
+#ifdef STARPU_USE_MIC 
 	combined_worker->count = nworkers -1;
 	pthread_mutex_init(&combined_worker->count_mutex,NULL);
+#endif
 
 	/* We assume that the memory node should either be that of the first
 	 * entry, and it is very likely that every worker in the combination