浏览代码

src/core/topology.c: only include hwloc file when hwloc is enabled

Nathalie Furmento 8 年之前
父节点
当前提交
a8c567890b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/topology.c

+ 1 - 1
src/core/topology.c

@@ -59,7 +59,7 @@
 #include <hwloc/cuda.h>
 #endif
 
-#if defined(STARPU_USE_OPENCL)
+#if defined(STARPU_HAVE_HWLOC) && defined(STARPU_USE_OPENCL)
 #include <hwloc/opencl.h>
 #endif