Browse Source

Disable long exhaustive checks unless --enable-long-check is passed to configure

Samuel Thibault 12 years ago
parent
commit
d2f912325c
3 changed files with 19 additions and 2 deletions
  1. 9 0
      configure.ac
  2. 4 0
      doc/chapters/configuration.texi
  3. 6 2
      tests/Makefile.am

+ 9 - 0
configure.ac

@@ -191,6 +191,15 @@ if  test x$enable_quick_check = xyes; then
 fi
 AM_CONDITIONAL([STARPU_QUICK_CHECK], [test "x$enable_quick_check" = "xyes"])
 
+# Define long check
+AC_ARG_ENABLE(long-check, [AS_HELP_STRING([--enable-long-check],
+				   [Enable some exhaustive checks which take a really long time])],
+				   enable_long_check=$enableval, enable_long_check=no)
+if  test x$enable_long_check = xyes; then
+	AC_DEFINE(STARPU_LONG_CHECK, [1], [enable long check])
+fi
+AM_CONDITIONAL([STARPU_LONG_CHECK], [test "x$enable_long_check" = "xyes"])
+
 AC_CHECK_HEADERS([malloc.h], [AC_DEFINE([STARPU_HAVE_MALLOC_H], [1], [Define to 1 if you have the <malloc.h> header file.])])
 
 AC_CHECK_HEADERS([valgrind/valgrind.h], [AC_DEFINE([STARPU_HAVE_VALGRIND_H], [1], [Define to 1 if you have the <valgrind/valgrind.h> header file.])])

+ 4 - 0
doc/chapters/configuration.texi

@@ -57,6 +57,10 @@ Specify tests and examples should be run on a smaller data set, i.e
 allowing a faster execution time
 @end defvr
 
+@defvr {Configure option} --enable-long-check
+Enable some exhaustive checks which take a really long time.
+@end defvr
+
 @defvr {Configure option} --with-hwloc
 Specify hwloc should be used by StarPU. hwloc should be found by the
 means of the tools @code{pkg-config}.

+ 6 - 2
tests/Makefile.am

@@ -134,7 +134,6 @@ noinst_PROGRAMS =				\
 	main/declare_deps_in_callback		\
 	main/declare_deps_after_submission	\
 	main/declare_deps_after_submission_synchronous	\
-	main/tag_task_data_deps			\
 	main/get_current_task			\
 	main/starpu_init			\
 	main/starpu_worker_exists		\
@@ -158,7 +157,6 @@ noinst_PROGRAMS =				\
 	datawizard/readers_and_writers		\
 	datawizard/unpartition			\
 	datawizard/user_interaction_implicit	\
-	datawizard/reclaim			\
 	datawizard/sync_with_data_with_mem	\
 	datawizard/sync_with_data_with_mem_non_blocking\
 	datawizard/sync_with_data_with_mem_non_blocking_implicit\
@@ -221,6 +219,12 @@ noinst_PROGRAMS =				\
 	sched_policies/simple_deps              \
 	sched_policies/simple_cpu_gpu_sched
 
+if STARPU_LONG_CHECK
+noinst_PROGRAMS +=				\
+	main/tag_task_data_deps			\
+	datawizard/reclaim
+endif
+
 examplebin_PROGRAMS = \
 	microbenchs/tasks_size_overhead		\
 	microbenchs/local_pingpong