瀏覽代碼

In order to maintain ABI compability, we add a dummy pointer in the topology
structure so that we can run the same binary with and without hwloc.

Cédric Augonnet 14 年之前
父節點
當前提交
e70be63b82
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      include/starpu_scheduler.h

+ 3 - 0
include/starpu_scheduler.h

@@ -31,6 +31,9 @@ struct starpu_machine_topology_s {
 
 #ifdef STARPU_HAVE_HWLOC
 	hwloc_topology_t hwtopology;
+#else
+	/* We maintain ABI compatibility with and without hwloc */
+	void *dummy;
 #endif
 
 	unsigned nhwcpus;