UBUNTU14.04 下 安装Intel GPU OpenCL runtime

本文介绍了如何在Ubuntu环境下,通过开源项目Beignet实现Intel集显的OpenCL开发,包括安装步骤和SDK的使用。

由于需要在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 下的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值