Browse Source

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

Nathalie Furmento 8 years ago
parent
commit
a8c567890b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/topology.c

+ 1 - 1
src/core/topology.c

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