Table of Contents generated with DocToc
#To build
- git
- cmake
- g++ (should support c++0x; eg 4.4 or better)
- An OpenCL-compatible driver installed, and OpenCL-compatible GPU
- tested using beignet, which provides OpenCL 1.2; and on CUDA 6.5 driver
- opencl-headers
- make
git clone --recursive https://github.com/hughperkins/DeepCL.git
cd DeepCL
mkdir build
cd build
cmake ..
make
Note:
- be sure to add
--recursive
when you clone, else when you build it will complain about OpenCLHelper missing (or clew missing)- if you do forget, you can experiment with running
git submodule init --recursive
, and thengit submodule update --recursive
- if you do forget, you can experiment with running
- you might need to play around with commands such as
git submodule update --recursive
occasionally, to pull down new OpenCLHelper updates
- git
- cmake
- Visual Studio (current 'standard' build system is: Visual Studio 2010 Express, but should also work on Visual Studio 2008 for Python 2.7, and Visual Studio Express 2013)
- An OpenCL-compatible driver installed, and OpenCL-compatible GPU
- in git, do
git clone --recursive https://github.com/hughperkins/DeepCL.git
- create a subdirectory
build
in the git clonedDeepCL
directory - open cmake, point at the
DeepCL
directory, and set to build in thebuild
subdirectoryconfigure
thengenerate
- open visual studio, and load any of the projects in the
build
directory- change release type to
Release
- choose
build
from thebuild
menu
- change release type to
- after building, you will need to copy the *.cl files by hand, from the
cl
directory
You will need:
- libDeepCL.so (or DeepCL.dll)
*.cl files*.cl files no longer needed at runtime :-) They're packaged inside the dll/so now.
The *.cl files should be in the current working directory at the time that you call into any DeepCL methods.