当前位置:   article > 正文

UBUNTU14.04 下 安装Intel GPU OpenCL runtime_apt install intel runtime

apt install intel 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 下的。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/386648?site=
推荐阅读
相关标签
  

闽ICP备14008679号