Looking for ViennaCL releases? Visit http://viennacl.sourceforge.net/
This is the developer repository of ViennaCL including the latest features and changes. Feel free to clone the repository, send us your pull requests, or update the Wiki here at github. All contributions are welcome. You might also want to subscribe to our developer mailing list. There are no 'stupid questions', so don't hesitate to get in contact with us.
To build the developer version of ViennaCL, simply clone the repository and issue the following commands (the following steps are for Unix-based systems):
$> cd viennacl-dev $> mkdir build && cd build $> cmake .. $> make
(Feel free to use parallel builds through
make -j4, but keep in mind that each build might take up to one GB of RAM)
Follow similar steps on Windows:
- Launch the CMake-GUI and point the source-directory to
viennacl-devand the build-directory to
- Confirm that CMake should create the build-folder for you.
- Click on
Configureand select your compilation environment.
- Provide any missing paths to Boost and/or OpenCL, or deselect
- Click on
Configureagain and then on
- You will now find the generated project files in the build-folder, which you process with your compiler environment.
(Feedback from developers on Windows on the build process of the developer version are welcome)
System requirements for the developer version:
- Boost libraries >= 1.45 (feel free to disable
ENABLE_UBLASin CMake in order to build without Boost)
- CMake 2.8 or higher (for building the tests and examples)
- A not-too-ancient C++ compiler
- OpenMP-enabled C++ compiler
- One or more OpenCL SDKs (1.1 or higher)
- CUDA toolkit (4.x or higher)
- Eigen (3.0 or higher)
- MTL 4
Sending Pull Requests
We strive for high code quality and maintainability. Before sending pull requests, please ensure that your contribution passes the following minimum requirements, which are commonly considered good practice in software engineering:
- The new code passes all tests when running 'make test'.
- The new code compiles cleanly at high warning levels (-Wall -pedantic, just enable
ENABLE_PEDANTIC_FLAGSwithin CMake) on at least GCC and/or Clang, ideally also Visual Studio compilers. The more the better, but at least one of the compilers should have been tested.
- For new functions or classes, please add Doxygen comments to the code. This makes it easier for others to quickly build on top of your code.
- Don't use tabs. Configure your editor such that it uses two spaces instead.