installing.texi 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. @c -*-texinfo-*-
  2. @c This file is part of the StarPU Handbook.
  3. @c Copyright (C) 2009--2011 Universit@'e de Bordeaux 1
  4. @c Copyright (C) 2010, 2011, 2012, 2013 Centre National de la Recherche Scientifique
  5. @c Copyright (C) 2011, 2012 Institut National de Recherche en Informatique et Automatique
  6. @c See the file starpu.texi for copying conditions.
  7. @menu
  8. * Downloading StarPU::
  9. * Configuration of StarPU::
  10. * Building and Installing StarPU::
  11. @end menu
  12. StarPU can be built and installed by the standard means of the GNU
  13. autotools. The following chapter is intended to briefly remind how these tools
  14. can be used to install StarPU.
  15. @node Downloading StarPU
  16. @section Downloading StarPU
  17. @menu
  18. * Getting Sources::
  19. * Optional dependencies::
  20. @end menu
  21. @node Getting Sources
  22. @subsection Getting Sources
  23. The latest official release tarballs of StarPU sources are available
  24. for download from
  25. @indicateurl{https://gforge.inria.fr/frs/?group_id=1570}.
  26. The latest nightly development snapshot is available from
  27. @indicateurl{http://starpu.gforge.inria.fr/testing/}.
  28. @example
  29. % wget http://starpu.gforge.inria.fr/testing/starpu-nightly-latest.tar.gz
  30. @end example
  31. Additionally, the code can be directly checked out of Subversion, it
  32. should be done only if you need the very latest changes (i.e. less
  33. than a day!).@footnote{The client side of the software Subversion can
  34. be obtained from @indicateurl{http://subversion.tigris.org}. If you
  35. are running on Windows, you will probably prefer to use
  36. @url{http://tortoisesvn.tigris.org/, TortoiseSVN}.}.
  37. @example
  38. % svn checkout svn://scm.gforge.inria.fr/svn/starpu/trunk
  39. @end example
  40. @node Optional dependencies
  41. @subsection Optional dependencies
  42. The @url{http://www.open-mpi.org/software/hwloc, @code{hwloc} topology
  43. discovery library} is not mandatory to use StarPU but strongly
  44. recommended. It allows for topology aware scheduling, which improves
  45. performance. @code{hwloc} is available in major free operating system
  46. distributions, and for most operating systems.
  47. If hwloc is not available on your system, the option
  48. @code{--without-hwloc} should be explicitely given when calling the
  49. configure script. If hwloc is installed with a @code{pkg-config} file,
  50. no option is required, it will be detected automatically, otherwise
  51. the @code{with-hwloc=prefix} should be used to specify the location
  52. of hwloc.
  53. @node Configuration of StarPU
  54. @section Configuration of StarPU
  55. @menu
  56. * Generating Makefiles and configuration scripts::
  57. * Running the configuration::
  58. @end menu
  59. @node Generating Makefiles and configuration scripts
  60. @subsection Generating Makefiles and configuration scripts
  61. This step is not necessary when using the tarball releases of StarPU. If you
  62. are using the source code from the svn repository, you first need to generate
  63. the configure scripts and the Makefiles. This requires the
  64. availability of @code{autoconf}, @code{automake} >= 2.60, and @code{makeinfo}.
  65. @example
  66. % ./autogen.sh
  67. @end example
  68. @node Running the configuration
  69. @subsection Running the configuration
  70. @example
  71. % ./configure
  72. @end example
  73. Details about options that are useful to give to @code{./configure} are given in
  74. @ref{Compilation configuration}.
  75. By default, the files produced during the compilation are placed in
  76. the source directory. As the compilation generates a lot of files, it
  77. is advised to to put them all in a separate directory. It is then
  78. easier to cleanup, and this allows to compile several configurations
  79. out of the same source tree. For that, simply enter the directory
  80. where you want the compilation to produce its files, and invoke the
  81. configure script located in the StarPU source directory.
  82. @example
  83. % mkdir build
  84. % cd build
  85. % ../configure
  86. @end example
  87. @node Building and Installing StarPU
  88. @section Building and Installing StarPU
  89. @menu
  90. * Building::
  91. * Sanity Checks::
  92. * Installing::
  93. @end menu
  94. @node Building
  95. @subsection Building
  96. @example
  97. % make
  98. @end example
  99. @node Sanity Checks
  100. @subsection Sanity Checks
  101. Once everything is built, you may want to test the result. An
  102. extensive set of regression tests is provided with StarPU. Running the
  103. tests is done by calling @code{make check}. These tests are run every night
  104. and the result from the main profile is publicly
  105. @url{http://starpu.gforge.inria.fr/testing/,available}.
  106. @example
  107. % make check
  108. @end example
  109. @node Installing
  110. @subsection Installing
  111. In order to install StarPU at the location that was specified during
  112. configuration:
  113. @example
  114. % make install
  115. @end example
  116. Libtool interface versioning information are included in
  117. libraries names (libstarpu-1.0.so, libstarpumpi-1.0.so and
  118. libstarpufft-1.0.so).