瀏覽代碼

starpufft: By default, StarPU FFT examples are not compiled and checked, the configure option --enable-starpufft-examples needs to be specified to change this behaviour.

Nathalie Furmento 11 年之前
父節點
當前提交
68d0971b70
共有 4 個文件被更改,包括 21 次插入1 次删除
  1. 3 0
      ChangeLog
  2. 5 0
      configure.ac
  3. 8 0
      doc/doxygen/chapters/41configure_options.doxy
  4. 5 1
      starpufft/Makefile.am

+ 3 - 0
ChangeLog

@@ -340,6 +340,9 @@ Small changes:
   * Use C99 variadic macro support, not GNU.
   * Fix performance regression: dmda queues were inadvertently made
     LIFOs in r9611.
+  * By default, StarPU FFT examples are not compiled and checked, the
+    configure option --enable-starpufft-examples needs to be specified
+    to change this behaviour.
 
 StarPU 1.0.3 (svn revision 7379)
 ==============================================

+ 5 - 0
configure.ac

@@ -2241,6 +2241,11 @@ if test x$enable_starpufft = xyes -a \( \( x$enable_cpu = xyes -a x$have_fftw =
 fi
 AM_CONDITIONAL(BUILD_STARPUFFT, [test x$fft_support = xyes])
 
+AC_ARG_ENABLE(starpufft-examples, [AS_HELP_STRING([--enable-starpufft-examples],
+			[disable execution of StarPU FFT examples])],
+			enable_starpufft_examples=$enableval, enable_starpufft_examples=no)
+AM_CONDITIONAL(BUILD_STARPUFFT_EXAMPLES, [test x$enable_starpufft_examples = xyes])
+
 ##########################################
 # hwloc                                  #
 ##########################################

+ 8 - 0
doc/doxygen/chapters/41configure_options.doxy

@@ -426,6 +426,14 @@ library has to be 'atlas' or 'goto'.
 Disable the build of libstarpufft, even if <c>fftw</c> or <c>cuFFT</c> is available.
 </dd>
 
+<dt>--enable-starpufft-examples</dt>
+<dd>
+\anchor enable-starpufft-examples
+\addindex __configure__--enable-starpufft-examples
+Enable the compilation and the execution of the libstarpufft examples.
+By default, they are neither compiled nor checked.
+</dd>
+
 <dt>--with-magma=<c>prefix</c></dt>
 <dd>
 \anchor with-magma

+ 5 - 1
starpufft/Makefile.am

@@ -15,7 +15,11 @@
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 #
 
-SUBDIRS=src tests
+SUBDIRS=src
+
+if BUILD_STARPUFFT_EXAMPLES
+SUBDIRS += tests
+endif
 
 versincludedir = $(includedir)/starpu/$(STARPU_EFFECTIVE_VERSION)
 versinclude_HEADERS = 				\