installing.texi 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 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 specified 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. @node Building and Installing StarPU
  76. @section Building and Installing StarPU
  77. @menu
  78. * Building::
  79. * Sanity Checks::
  80. * Installing::
  81. @end menu
  82. @node Building
  83. @subsection Building
  84. @example
  85. % make
  86. @end example
  87. @node Sanity Checks
  88. @subsection Sanity Checks
  89. In order to make sure that StarPU is working properly on the system, it is also
  90. possible to run a test suite.
  91. @example
  92. % make check
  93. @end example
  94. @node Installing
  95. @subsection Installing
  96. In order to install StarPU at the location that was specified during
  97. configuration:
  98. @example
  99. % make install
  100. @end example
  101. Libtool interface versioning information are included in
  102. libraries names (libstarpu-1.0.so, libstarpumpi-1.0.so and
  103. libstarpufft-1.0.so).