Browse Source

File STARPU-REVISION --- containing the SVN revision number from which StarPU was compiled --- is installed in the share/doc/starpu directory

Nathalie Furmento 12 years ago
parent
commit
ae27df5080
3 changed files with 28 additions and 11 deletions
  1. 11 9
      ChangeLog
  2. 2 2
      Makefile.am
  3. 15 0
      configure.ac

+ 11 - 9
ChangeLog

@@ -93,6 +93,17 @@ New features:
   * Introduce new variables STARPU_LIMIT_CUDA_devid_MEM and
     STARPU_LIMIT_OPENCL_devid_MEM to limit memory per specific device
 
+Small features:
+  * Add starpu_worker_get_by_type and starpu_worker_get_by_devid
+  * Add starpu_fxt_stop_profiling/starpu_fxt_start_profiling which permits to
+    pause trace recording.
+  * Add trace_buffer_size configuration field to permit to specify the tracing
+    buffer size.
+  * Add starpu_codelet_profile and starpu_codelet_histo_profile, tools which draw
+    the profile of a codelet.
+  * File STARPU-REVISION --- containing the SVN revision number from which
+    StarPU was compiled --- is installed in the share/doc/starpu directory
+
 Changes:
   * Fix the block filter functions.
   * Fix StarPU-MPI on Darwin.
@@ -127,15 +138,6 @@ Changes:
   * StarPU can now use poti to generate paje traces.
   * Rename scheduling policy "parallel greedy" to "parallel eager"
 
-Small features:
-  * Add starpu_worker_get_by_type and starpu_worker_get_by_devid
-  * Add starpu_fxt_stop_profiling/starpu_fxt_start_profiling which permits to
-  pause trace recording.
-  * Add trace_buffer_size configuration field to permit to specify the tracing
-  buffer size.
-  * Add starpu_codelet_profile and starpu_codelet_histo_profile, tools which draw
-  the profile of a codelet.
-
 Small changes:
   * STARPU_NCPU should now be used instead of STARPU_NCPUS. STARPU_NCPUS is
 	still available for compatibility reasons.

+ 2 - 2
Makefile.am

@@ -114,8 +114,8 @@ txtdir = ${prefix}
 else
 txtdir = ${docdir}
 endif
-txt_DATA = AUTHORS COPYING.LGPL README
-EXTRA_DIST = AUTHORS COPYING.LGPL README STARPU-VERSION build-aux/svn2cl.xsl
+txt_DATA = AUTHORS COPYING.LGPL README STARPU-REVISION
+EXTRA_DIST = AUTHORS COPYING.LGPL README STARPU-VERSION STARPU-REVISION build-aux/svn2cl.xsl
 
 include starpu-top/extradist
 

+ 15 - 0
configure.ac

@@ -81,6 +81,21 @@ AC_C_RESTRICT
 # Check if bash is available
 AC_CHECK_PROGS([BASH], [bash])
 
+# Check whether subversion is installed
+AC_PATH_PROG(svnversioncommand, svnversion)
+
+# use svnversion to record the current repository revision only if
+# subversion is installed and we are in a working copy
+if test "$svnversioncommand" = "" || test `LC_ALL=C $svnversioncommand -n $srcdir` = "exported" ; then
+   if test -f $srcdir/STARPU-REVISION ; then
+      cp $srcdir/STARPU-REVISION .
+   else
+      echo "unknown" > ./STARPU-REVISION
+   fi
+else
+   LC_ALL=C svnversion $srcdir > ./STARPU-REVISION
+fi
+
 AC_PATH_PROGS([STARPU_MS_LIB], [lib])
 AC_ARG_VAR([STARPU_MS_LIB], [Path to Microsoft's Visual Studio `lib' tool])
 AM_CONDITIONAL([STARPU_HAVE_MS_LIB], [test "x$STARPU_MS_LIB" != "x"])