INSTALLING CUDA ON WINDOWS
==========================
* Install all CUDA tools from NVIDIA, at least 2.0
* Install MS Visual Studio 2003 (= VC71)
[* Install MS Visual Studio Express 2008] (optional)
* Install Boost C++ from Boost Pro Free binary installer, include Python
binaries for VC71.
* Download PyCuda
* Create a file siteconf.py in the pycuda folder:
BOOST_INC_DIR = [r'C:\Program Files\boost\boost_1_37']
BOOST_LIB_DIR = [r'C:\Program Files\boost\boost_1_37\lib']
BOOST_PYTHON_LIBNAME = ['boost_python-vc71-mt-1_37']
CUDA_ROOT = r'C:\CUDA'
CUDADRV_LIB_DIR = [r'C:\CUDA\lib']
CUDADRV_LIBNAME = ['cuda']
CXXFLAGS = []
LDFLAGS = []
* Check the directories above with your configuration.
* Copy the Boost file boost_python-vc71-mt-1_37.dll to the Windows folder.
* Run the Visual Studio 2003 command prompt, go to the pycuda folder and run
setup.py install.
* Add the following directories to your Path environment variable:
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE
C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\BIN
[optionnally, replace by the MS Visual Studio Express 2008 directories]

Installing PyCUDA on Windows update
-----------------------------------

I just installed PyCUDA 0.93 and it required some significant modifications of
the above:

* Install CUDA 2.3
* Install MSVS 2003
* Install Boost latest version (I used 1.37 not the latest)
* Download PyCuda
* Compile Boost with MSVS:
  - Run MSVS command prompt and go to boost directory
  - Build Boost for Python:
    + bjam toolset=msvs-7.1 -–with-python -–build-type=complete stage
    + (wait a long time)
  - Build Boost threads:
    + bjam toolset=msvs-7.1 -–with-thread -–build-type=complete stage
  - Build Boost date_time (no idea why):
    + bjam toolset=msvs-7.1 -–with-date_time -–build-type=complete stage
  - Copy BoostDir/stage/lib/*.dll to C:\Windows
* Compile PyCuda with MSVS:
  - Run MSVS command prompt and go to PyCuda download directory
  - Configure:
    + configure.py –boost-inc-dir=c:\boost_1_37_0
                   –boost-lib-dir=c:\boost_1_37_0\stage\lib
                   –boost-python-libname=boost_python-vc71-mt-1_37
                   –boost-thread-libname=boost_thread-vc71-mt-1_37
                   –cuda-root=c:\cuda
  - Build and install:
    + setup.py build
    + setup.py install
* Make sure you have a HOME environment variable set









** ALTERNATIVE INSTALLATION ** [UNTESTED]
This installation uses cygwin for compiling pypar, as explained here:
http://boodebr.org/main/python/build-windows-extensions
MS Visual Studio is used for compiling cuda files.

* Install all CUDA tools from NVIDIA, at least 2.0
* Install MS Visual Studio Express 2008 (or other MS compiler)
* Install Boost C++ from Boost Pro Free binary installer, include Python
binaries for ???. [maybe a cygwin version?]
* Create a file c:\python25\lib\distutils\distutils.cfg:
[build]
compiler = mingw32
* Download PyCuda
* Create a file siteconf.py in the pycuda folder:
BOOST_INC_DIR = [r'C:\Program Files\boost\boost_1_37']
BOOST_LIB_DIR = [r'C:\Program Files\boost\boost_1_37\lib']
BOOST_PYTHON_LIBNAME = ['boost_python-vc71-mt-1_37']
CUDA_ROOT = r'C:\CUDA'
CUDADRV_LIB_DIR = [r'C:\CUDA\lib']
CUDADRV_LIBNAME = ['cuda']
CXXFLAGS = []
LDFLAGS = []
* Check the directories above with your configuration.
* Copy the Boost file boost_python-vc71-mt-1_37.dll to the Windows folder.
* Go to the pycuda folder and run setup.py install.
* Add the following directories to your Path environment variable:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
[check with your configuration]
