Setup Debian for OpenCL Development
25 Nov 2013Introduction
OpenCL (or Open Computing Language) is a framework that allows you to write code across different connected devices to your computer. Code that you write can execute on CPUs, GPUs, DPSs amongst other pieces of hardware. The framework itself is a standard that puts the focus on running your code across these devices but also emphasises parallel computing.
Today’s post will just be on getting your development environment setup on Debian Wheezy to start writing some code.
Installation
The installation process is pretty straight forward, but there are some choices in libraries. The major vendors (Intel, NVIDIA and AMD) all have development libraries that are installable from Debian’s package repository. There’s plenty of banter on the internet as to who’s is better for what purpose.
First off, we need to install the header files we’ll use to create OpenCL programs.
This has now put all of the development headers in place for you to compile some code.
Secondly, we need to make a choice in what library we’ll use:
The amd-opencl-dev
package will install AMD’s implementation, which you can read up on here. NVIDIA’s package is installable through the nvidia-opencl-dev
package which you can read up on here. Finally, Intel’s implementation is available through the beignet-dev
package and you can read up on their implementation here.
I went with AMD’s.
From here, it’s time to write some code. I’ll have some more blog posts on the way which will be walk-throughs for your first applications.