README 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2010 Inria
  4. # Copyright (C) 2009-2012,2014,2016 Université de Bordeaux
  5. # Copyright (C) 2010-2015 CNRS
  6. #
  7. # StarPU is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2.1 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # StarPU is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. #
  18. ++=================++
  19. || I. Introduction ||
  20. ++=================++
  21. +---------------------
  22. | I.a. What is StarPU?
  23. StarPU is a runtime system that offers support for heterogeneous multicore
  24. machines. While many efforts are devoted to design efficient computation kernels
  25. for those architectures (e.g. to implement BLAS kernels on GPUs),
  26. StarPU not only takes care of offloading such kernels (and
  27. implementing data coherency across the machine), but it also makes
  28. sure the kernels are executed as efficiently as possible.
  29. +------------------------
  30. | I.b. What StarPU is not
  31. StarPU is not a new language, and it does not extend existing languages either.
  32. StarPU does not help to write computation kernels.
  33. +---------------------------------
  34. | I.c. (How) Could StarPU help me?
  35. While StarPU will not make it easier to write computation kernels, it does
  36. simplify their actual offloading as StarPU handle most low level aspects
  37. transparently.
  38. Obviously, it is crucial to have efficient kernels, but it must be noted that
  39. the way those kernels are mapped and scheduled onto the computational resources
  40. also affect the overall performance to a great extent.
  41. StarPU is especially helpful when considering multiple heterogeneous processing
  42. resources: statically mapping and synchronizing tasks in such a heterogeneous
  43. environment is already very difficult, making it in a portable way is virtually
  44. impossible. On the other hand, the scheduling capabilities of StarPU makes it
  45. possible to easily exploit all processors at the same time while taking
  46. advantage of their specificities in a portable fashion.
  47. ++==================++
  48. || II. Requirements ||
  49. ++==================++
  50. * make
  51. * gcc (version >= 4.1)
  52. * if CUDA support is enabled
  53. * CUDA (version >= 2.2)
  54. * CUBLAS (version >= 2.2)
  55. * if OpenCL support is enabled
  56. * AMD SDK >= 2.3 if AMD driver is used
  57. * CUDA >= 3.2 if NVIDIA driver is used
  58. * extra requirements for the svn version (we usually use the Debian testing
  59. versions)
  60. * autoconf (version >= 2.60)
  61. * automake
  62. * makeinfo
  63. * libtool (version >= 2)
  64. * Remark: It is strongly recommanded that you also install the hwloc library
  65. before installing StarPU. This permits StarPU to actually map the processing
  66. units according to the machine topology. For more details on hwloc, see
  67. http://www.open-mpi.org/projects/hwloc/ .
  68. * To build the StarPU-Top tool the following packages (along with
  69. their development files) are also required:
  70. * libqt4-dev >= 4.7
  71. * libqt4-network
  72. * libqt4-opengl
  73. * libqt4-sql
  74. * qt4-qmake
  75. ++=====================++
  76. || III. Getting StarPU ||
  77. ++=====================++
  78. StarPU is available on https://gforge.inria.fr/projects/starpu/.
  79. The project's SVN repository can be checked out through anonymous
  80. access with the following command(s).
  81. $ svn checkout svn://scm.gforge.inria.fr/svn/starpu/trunk
  82. $ svn checkout --username anonsvn https://scm.gforge.inria.fr/svn/starpu/trunk
  83. The password is 'anonsvn'
  84. ++=============================++
  85. || IV. Building and Installing ||
  86. ++=============================++
  87. +---------------------------
  88. | IV.a. For svn version only
  89. Please skip this step if you are building from a tarball.
  90. $ ./autogen.sh
  91. +-----------------------
  92. | IV.b. For all versions
  93. $ ./configure
  94. $ make
  95. $ make install
  96. +---------------------
  97. | IV.c. Windows build:
  98. StarPU can be built using MinGW or Cygwin. To avoid the cygwin dependency,
  99. we provide MinGW-built binaries. The build process produces libstarpu.dll,
  100. libstarpu.def, and libstarpu.lib, which should be enough to use it from e.g.
  101. Microsoft Visual Studio.
  102. Update the video drivers to the latest stable release available for your
  103. hardware. Old ATI drivers (< 2.3) contain bugs that cause OpenCL support in
  104. StarPU to hang or exhibit incorrect behaviour.
  105. For details on the Windows build process, see the INSTALL file.
  106. ++======================================================++
  107. || V. Running StarPU Applications on Microsoft Visual C ||
  108. ++======================================================++
  109. Batch files are provided to run StarPU applications under Microsoft
  110. Visual C. They are installed in path_to_starpu/bin/msvc.
  111. To execute a StarPU application, you first need to set the environment
  112. variable STARPU_PATH.
  113. c:\....> cd c:\cygwin\home\ci\starpu\
  114. c:\....> set STARPU_PATH=c:\cygwin\home\ci\starpu\
  115. c:\....> cd bin\msvc
  116. c:\....> starpu_open.bat starpu_simple.c
  117. The batch script will run Microsoft Visual C with a basic project file
  118. to run the given application.
  119. The batch script starpu_clean.bat can be used to delete all
  120. compilation generated files.
  121. The batch script starpu_exec.bat can be used to compile and execute a
  122. StarPU application from the command prompt.
  123. c:\....> cd c:\cygwin\home\ci\starpu\
  124. c:\....> set STARPU_PATH=c:\cygwin\home\ci\starpu\
  125. c:\....> cd bin\msvc
  126. c:\....> starpu_exec.bat ..\..\..\..\examples\basic_examples\hello_world.c
  127. MSVC StarPU Execution
  128. ...
  129. /out:hello_world.exe
  130. ...
  131. Hello world (params = {1, 2.00000})
  132. Callback function got argument 0000042
  133. c:\....>
  134. ++===================++
  135. || VI. Documentation ||
  136. ++===================++
  137. Doxygen documentation is available in doc/doxygen. If the doxygen
  138. tools are available on the machine, pdf and html documentation can be
  139. generated by running
  140. $ make -C doc
  141. ++=============++
  142. || VII. Trying ||
  143. ++=============++
  144. Some examples ready to run are installed into $prefix/lib/starpu/{examples,mpi}
  145. ++===============++
  146. || VIII. Upgrade ||
  147. ++===============++
  148. To upgrade your source code from older version (there were quite a few
  149. renamings), use the tools/dev/rename.sh script
  150. ++=============++
  151. || IX. Contact ||
  152. ++=============++
  153. For any questions regarding StarPU, please contact the starpu-devel
  154. mailing-list at starpu-devel@lists.gforge.inria.fr .