installing.texi 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 Centre National de la Recherche Scientifique
  5. @c Copyright (C) 2011 Institut National de Recherche en Informatique et Automatique
  6. @c See the file starpu.texi for copying conditions.
  7. @node Installing StarPU
  8. @chapter Installing StarPU
  9. @menu
  10. * Downloading StarPU::
  11. * Configuration of StarPU::
  12. * Building and Installing StarPU::
  13. @end menu
  14. StarPU can be built and installed by the standard means of the GNU
  15. autotools. The following chapter is intended to briefly remind how these tools
  16. can be used to install StarPU.
  17. @node Downloading StarPU
  18. @section Downloading StarPU
  19. @menu
  20. * Getting Sources::
  21. * Optional dependencies::
  22. @end menu
  23. @node Getting Sources
  24. @subsection Getting Sources
  25. The simplest way to get StarPU sources is to download the latest official
  26. release tarball from @indicateurl{https://gforge.inria.fr/frs/?group_id=1570} ,
  27. or the latest nightly snapshot from
  28. @indicateurl{http://starpu.gforge.inria.fr/testing/} . The following documents
  29. how to get the very latest version from the subversion repository itself, it
  30. should be needed only if you need the very latest changes (i.e. less than a
  31. day!)
  32. The source code is managed by a Subversion server hosted by the
  33. InriaGforge. To get the source code, you need:
  34. @itemize
  35. @item
  36. To install the client side of the software Subversion if it is
  37. not already available on your system. The software can be obtained from
  38. @indicateurl{http://subversion.tigris.org} . If you are running
  39. on Windows, you will probably prefer to use TortoiseSVN from
  40. @indicateurl{http://tortoisesvn.tigris.org/} .
  41. @item
  42. You can check out the project's SVN repository through anonymous
  43. access. This will provide you with a read access to the
  44. repository.
  45. If you need to have write access on the StarPU project, you can also choose to
  46. become a member of the project @code{starpu}. For this, you first need to get
  47. an account to the gForge server. You can then send a request to join the project
  48. (@indicateurl{https://gforge.inria.fr/project/request.php?group_id=1570}).
  49. @item
  50. More information on how to get a gForge account, to become a member of
  51. a project, or on any other related task can be obtained from the
  52. InriaGforge at @indicateurl{https://gforge.inria.fr/}. The most important
  53. thing is to upload your public SSH key on the gForge server (see the
  54. FAQ at @indicateurl{http://siteadmin.gforge.inria.fr/FAQ.html#Q6} for
  55. instructions).
  56. @end itemize
  57. You can now check out the latest version from the Subversion server:
  58. @itemize
  59. @item
  60. using the anonymous access via svn:
  61. @example
  62. % svn checkout svn://scm.gforge.inria.fr/svn/starpu/trunk
  63. @end example
  64. @item
  65. using the anonymous access via https:
  66. @example
  67. % svn checkout --username anonsvn https://scm.gforge.inria.fr/svn/starpu/trunk
  68. @end example
  69. The password is @code{anonsvn}.
  70. @item
  71. using your gForge account
  72. @example
  73. % svn checkout svn+ssh://<login>@@scm.gforge.inria.fr/svn/starpu/trunk
  74. @end example
  75. @end itemize
  76. The following step requires the availability of @code{autoconf} and
  77. @code{automake} to generate the @code{./configure} script. This is
  78. done by calling @code{./autogen.sh}. The required version for
  79. @code{autoconf} is 2.60 or higher. You will also need @code{makeinfo}.
  80. @example
  81. % ./autogen.sh
  82. @end example
  83. If the autotools are not available on your machine or not recent
  84. enough, you can choose to download the latest nightly tarball, which
  85. is provided with a @code{configure} script.
  86. @example
  87. % wget http://starpu.gforge.inria.fr/testing/starpu-nightly-latest.tar.gz
  88. @end example
  89. @node Optional dependencies
  90. @subsection Optional dependencies
  91. The topology discovery library, @code{hwloc}, is not mandatory to use StarPU
  92. but strongly recommended. It allows to increase performance, and to
  93. perform some topology aware scheduling.
  94. @code{hwloc} is available in major distributions and for most OSes and can be
  95. downloaded from @indicateurl{http://www.open-mpi.org/software/hwloc}.
  96. @node Configuration of StarPU
  97. @section Configuration of StarPU
  98. @menu
  99. * Generating Makefiles and configuration scripts::
  100. * Running the configuration::
  101. @end menu
  102. @node Generating Makefiles and configuration scripts
  103. @subsection Generating Makefiles and configuration scripts
  104. This step is not necessary when using the tarball releases of StarPU. If you
  105. are using the source code from the svn repository, you first need to generate
  106. the configure scripts and the Makefiles.
  107. @example
  108. % ./autogen.sh
  109. @end example
  110. @node Running the configuration
  111. @subsection Running the configuration
  112. @example
  113. % ./configure
  114. @end example
  115. Details about options that are useful to give to @code{./configure} are given in
  116. @ref{Compilation configuration}.
  117. @node Building and Installing StarPU
  118. @section Building and Installing StarPU
  119. @menu
  120. * Building::
  121. * Sanity Checks::
  122. * Installing::
  123. @end menu
  124. @node Building
  125. @subsection Building
  126. @example
  127. % make
  128. @end example
  129. @node Sanity Checks
  130. @subsection Sanity Checks
  131. In order to make sure that StarPU is working properly on the system, it is also
  132. possible to run a test suite.
  133. @example
  134. % make check
  135. @end example
  136. @node Installing
  137. @subsection Installing
  138. In order to install StarPU at the location that was specified during
  139. configuration:
  140. @example
  141. % make install
  142. @end example