瀏覽代碼

include: fix starpu_clusters_util.h

Nathalie Furmento 9 年之前
父節點
當前提交
f9589cb8e5
共有 2 個文件被更改,包括 3 次插入5 次删除
  1. 0 3
      include/starpu.h
  2. 3 2
      include/starpu_clusters_util.h

+ 0 - 3
include/starpu.h

@@ -70,10 +70,7 @@ typedef UINT_PTR uintptr_t;
 #include <starpu_openmp.h>
 #include <starpu_simgrid_wrap.h>
 #include <starpu_bitmap.h>
-
-#if defined(STARPU_HAVE_HWLOC) && defined(STARPU_OPENMP)
 #include <starpu_clusters_util.h>
-#endif
 
 #ifdef __cplusplus
 extern "C"

+ 3 - 2
include/starpu_clusters_util.h

@@ -19,8 +19,8 @@
 #ifndef __STARPU_CLUSTERS_UTIL_H__
 #define __STARPU_CLUSTERS_UTIL_H__
 
-#include <stdarg.h>
-#include <starpu.h>
+#ifdef STARPU_HAVE_HWLOC
+
 #include <hwloc.h>
 
 #ifdef __cplusplus
@@ -82,4 +82,5 @@ void starpu_gnu_openmp_mkl_prologue(void * sched_ctx_id);
 }
 #endif
 
+#endif
 #endif /* __STARPU_CLUSTERS_UTIL_H__ */