瀏覽代碼

config macro definition (still not working)

Andra Hugo 12 年之前
父節點
當前提交
14881ad180
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      configure.ac
  2. 2 2
      include/starpu_scheduler.h

+ 2 - 2
configure.ac

@@ -235,7 +235,7 @@ AC_DEFINE_UNQUOTED(STARPU_NMAX_SCHED_CTXS, [$max_sched_ctxs], [Maximum number of
 AC_ARG_ENABLE([sched_ctx_hypervisor],
 AC_ARG_ENABLE([sched_ctx_hypervisor],
   [AS_HELP_STRING([--enable-sched-ctx-hypervisor],
   [AS_HELP_STRING([--enable-sched-ctx-hypervisor],
     [enable resizing contexts (experimental)])],
     [enable resizing contexts (experimental)])],
-  [enable_sched_ctx_hypervisor="$enableval"],
+  [enable_sched_ctx_hypervisor="yes"],
   [enable_sched_ctx_hypervisor="no"])
   [enable_sched_ctx_hypervisor="no"])
 
 
 if test "x$enable_sched_ctx_hypervisor" = "xyes"; then
 if test "x$enable_sched_ctx_hypervisor" = "xyes"; then
@@ -823,7 +823,7 @@ AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug], [enable debug mode])],
 AC_MSG_RESULT($enable_debug)
 AC_MSG_RESULT($enable_debug)
 
 
 if test x$enable_debug = xyes; then
 if test x$enable_debug = xyes; then
-	CFLAGS="$CFLAGS -O0"
+	CFLAGS="$CFLAGS -O0 -Werror"
 	AC_DEFINE(STARPU_SPINLOCK_CHECK, [1], [check spinlock use])
 	AC_DEFINE(STARPU_SPINLOCK_CHECK, [1], [check spinlock use])
 else
 else
 	CFLAGS="-O3 $CFLAGS"
 	CFLAGS="-O3 $CFLAGS"

+ 2 - 2
include/starpu_scheduler.h

@@ -50,8 +50,8 @@ struct starpu_machine_topology
 #endif
 #endif
 
 
 	unsigned nhwcpus;
 	unsigned nhwcpus;
-        unsigned nhwcudagpus;
-        unsigned nhwopenclgpus;
+	unsigned nhwcudagpus;
+	unsigned nhwopenclgpus;
 
 
 	unsigned ncpus;
 	unsigned ncpus;
 	unsigned ncudagpus;
 	unsigned ncudagpus;