瀏覽代碼

perfmodel/perfmodel_bus.c: fix compilation when hwloc is not available

Nathalie Furmento 15 年之前
父節點
當前提交
b85521f39c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/core/perfmodel/perfmodel_bus.c

+ 2 - 0
src/core/perfmodel/perfmodel_bus.c

@@ -250,6 +250,7 @@ static int compar_dev_timing(const void *left_dev_timing, const void *right_dev_
 	return (bandwidth_sum2_left < bandwidth_sum2_right);
 }
 
+#ifdef STARPU_HAVE_HWLOC
 static int find_numa_node(hwloc_obj_t obj)
 {
 	STARPU_ASSERT(obj);
@@ -269,6 +270,7 @@ static int find_numa_node(hwloc_obj_t obj)
 
 	return current->logical_index; 
 }
+#endif
 
 static void measure_bandwidth_between_cpus_and_dev(int dev, struct dev_timing *dev_timing_per_cpu, char type)
 {