Explorar el Código

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

Nathalie Furmento hace 8 años
padre
commit
a8c567890b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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