瀏覽代碼

Clarify why we maintain both unix's and hwloc's cpu_sets.

Cédric Augonnet 14 年之前
父節點
當前提交
8a4176012b
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/core/combined_workers.c

+ 3 - 0
src/core/combined_workers.c

@@ -92,9 +92,12 @@ int starpu_combined_worker_assign_workerid(int nworkers, int workerid_array[])
 	/* Save the list of combined workers */
 	memcpy(&combined_worker->combined_workerid, workerid_array, nworkers*sizeof(int));
 
+	/* Note that we maintain both the cpu_set and the hwloc_cpu_set so that
+	 * the application is not forced to use hwloc when it is available. */
 #ifndef STARPU_HAVE_WINDOWS
 	CPU_ZERO(&combined_worker->cpu_set);
 #endif /* STARPU_HAVE_WINDOWS */
+
 #ifdef STARPU_HAVE_HWLOC
 	combined_worker->hwloc_cpu_set = hwloc_bitmap_alloc();
 #endif