README 6.3 KB

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