瀏覽代碼

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