installing.texi 5.3 KB

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