README.dev 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. Installing StarPU on windows
  2. ----------------------------
  3. 1. Install cygwin
  4. http://cygwin.com/install.html
  5. Make sure the following packages are available:
  6. - svn
  7. - libtool
  8. - gcc
  9. - make
  10. - your favorite editor (vi, emacs, ...)
  11. - gdb
  12. - zip
  13. - pkg-config
  14. 2. Install mingw
  15. http://sourceforge.net/projects/mingw/
  16. 3. Install hwloc (not mandatory)
  17. http://www.open-mpi.org/projects/hwloc
  18. 4. Install Microsoft Visual C++ 2008 Studio Express
  19. http://www.microsoft.com/express/Downloads
  20. On cygwin (and mingw), add in your path the following directories:
  21. export PATH=/cygdrive/c/Program Files/Microsoft Visual Studio 9.0/Common7/IDE:$PATH
  22. export PATH=/cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/bin:$PATH
  23. Try to call <lib.exe> and <link.exe>
  24. 5. Install GPU Drivers (not mandatory)
  25. 5.1 Install Cuda
  26. http://developer.nvidia.com/object/cuda_3_2_downloads.html
  27. You need to install at least the CUDA toolkit.
  28. libtool is not able to find the libraries automatically, you
  29. need to make some copies:
  30. copy c:\cuda\lib\cuda.lib c:\cuda\lib\libcuda.lib
  31. copy c:\cuda\lib\cudart.lib c:\cuda\lib\libcudart.lib
  32. copy c:\cuda\lib\cublas.lib c:\cuda\lib\libcublas.lib
  33. copy c:\cuda\lib\cufft.lib c:\cuda\lib\libcufft.lib
  34. copy c:\cuda\lib\OpenCL.lib c:\cuda\lib\libOpenCL.lib
  35. (and if the version of your CUDA driver is >= 3.2)
  36. copy c:\cuda\lib\curand.lib c:\cuda\lib\libcurand.lib
  37. Add the CUDA bin directory in your path
  38. export PATH=/cygdrive/c/CUDA/bin:$PATH
  39. 5.2 Install OpenCL
  40. http://developer.nvidia.com/object/opencl-download.html
  41. You need to download the NVIDIA Drivers for your version of
  42. Windows. Executing the file will extract all files in a given
  43. directory. The the driver installation will start, it will fail
  44. if no compatibles drivers can be found on your system.
  45. Anyway, you should copy the *.dl_ files from the directory
  46. (extraction path) in the bin directory of the CUDA installation
  47. directory (the directory should be v3.2/bin/)
  48. 5.3 Install MsCompress
  49. http://gnuwin32.sourceforge.net/packages/mscompress.htm
  50. Go in the CUDA bin directory, uncompress .dl_ files and rename
  51. them in .dll files
  52. cp /cygdrive/c/NVIDIA/DisplayDriver/190.89/International/*.dl_ .
  53. for i in *.dl_ ; do /cygdrive/c/Program\ Files/GnuWin32/bin/msexpand.exe $i ; mv ${i%_} ${i%_}l ; done
  54. 6. Start autogen.sh from cygwin
  55. cd starpu-trunk
  56. ./autogen.sh
  57. 7. Start a MinGW shell
  58. /cygdrive/c/MinGW/msys/1.0/bin/sh.exe --login -i
  59. 8. Configure, make, install
  60. cd starpu-trunk
  61. mkdir build
  62. cd build
  63. ../configure --prefix=$PWD/target --disable-default-drand48
  64. --with-hwloc=<HWLOC installation directory> \
  65. --with-cuda-dir=<CUDA installation directory> \
  66. --with-cuda-lib-dir=<CUDA installation directory>/lib/Win32 \
  67. --enable-opencl
  68. make
  69. make install
  70. Also convert a couple of files to CRLF:
  71. sed -e 's/$/'$'\015'/ < README > $PWD/target/README.txt
  72. sed -e 's/$/'$'\015'/ < AUTHORS > $PWD/target/AUTHORS.txt
  73. sed -e 's/$/'$'\015'/ < COPYING.LGPL > $PWD/target/COPYING.LGPL.txt
  74. 9. If you want your StarPU installation to be standalone, you need to
  75. copy the DLL files from hwloc, Cuda, and OpenCL into the StarPU
  76. installation bin directory, as well as MinGW/bin/libpthread*dll
  77. cp <CUDA directory>/bin/*dll target/bin
  78. cp <HWLOC directory>/bin/*dll target/bin
  79. cp /cygdrive/c/MinGW/bin/libpthread*dll target/bin
  80. and set the StarPU bin directory in your path.
  81. export PATH=<StarPU installation directory>/bin:$PATH