UBUNTU14.04 下 安装Intel GPU OpenCL runtime

由于需要在ubuntu 上开发opencl ,在intel 集显环境下,intel 没有提供官方OPENCL驱动,但幸好开源的力量是强大的:Beignet is an open source implementation of the OpenCL specification - a generic compute oriented API. This code base contains the code to run OpenCL programs on Intel GPUs which basically defines and implements the OpenCL host functions required to initialize the device, create the command queues, the kernels and the programs and run them on the GPU. http://www.freedesktop.org/wiki/Software/Beignet/好了废话不多说:

开装:

sudo apt-get install cmake pkg-config python ocl-icd-dev ocl-icd-opencl-dev libdrm-dev libxfixes-dev libxext-dev llvm-3.5-dev clang-3.5 libclang-3.5-dev libtinfo-dev libedit-dev zlib1g-dev libfreeimage-dev libatlas3gf-base libfftw3-dev
echo "Downloading beignet-1.0.3"
wget -O beignet-1.0.3-source.tar.gz https://01.org/sites/default/files/beignet-1.0.3-source.tar.gz --no-check-certificate
echo "Installing beignet-1.0.3"
tar -zxvf beignet-1.0.3-source.tar.gz
cd Beignet-1.0.3-Source
mkdir build
cd build
cmake ../ # to configure
make
sudo make install
sudo su
sudo echo -n 0 > /sys/module/i915/parameters/enable_hangcheck
sudo echo 0 > /sys/module/i915/parameters/enable_cmd_parser
装完后就可以测试使用了,至于SDK的话我这里使用的是NVIDIA CUDA toolkit7.0 里面的。链接的也是nvidia lib 下的。

猜你喜欢

转载自blog.csdn.net/chfeilong0202/article/details/46439275