#!/bin/bash#based on https://bitbucket.org/snippets/rajb245/epGzn/script-to-install-intel-opencl-runtime-151#this might work on other DEB based distros, YMMV#prereqs: wget, rpm2cpio, cpio, clinfo (for testing), and no other conflicting OpenCL drivers#Get this file#https://software.intel.com/en-us/articles/opencl-drivers#philinux#http://registrationcenter.intel.com/irc_nas/4181/opencl_runtime_14.2_x64_4.5.0.8.tgz#or this one http://registrationcenter.intel.com/irc_nas/5193/opencl_runtime_15.1_x64_5.0.0.57.tgz#wget http://registrationcenter.intel.com/irc_nas/4181/opencl_runtime_14.2_x64_4.5.0.8.tgz#wget http://registrationcenter.intel.com/irc_nas/5193/opencl_runtime_15.1_x64_5.0.0.57.tgzwget http://registrationcenter-download.intel.com/akdlm/irc_nas/9019/opencl_runtime_16.1_x64_ubuntu_5.2.0.10002.tgz
#unpack the tarballtar xvf opencl_runtime_16.1_x64_ubuntu_5.2.0.10002.tgz
#unpack the rpms#according to http://mhr3.blogspot.com/2013/06/opencl-on-ubuntu-1304.html, we don't need all of them unpacked#basically, just the ICD itselfrpm2cpio opencl_runtime_16.1_x64_ubuntu_5.2.0.10002/rpm/opencl-1.2-intel-cpu-5.2.0.10002-1.x86_64.rpm | cpio -idmv
#stub out the directory structure for the deb package as a staging area#some of these steps are from here http://mhr3.blogspot.com/2013/06/opencl-on-ubuntu-1304.htmlmkdir opencl-driver-intel-cpu
cd opencl-driver-intel-cpu
mkdir DEBIAN
mkdir -p etc/OpenCL/vendors
mkdir -p usr/lib/x86_64-linux-gnu/OpenCL/vendors/intel
mkdir -p usr/share/doc/opencl-driver-intel-cpu
cd ..
#put the right description of the package in the right place#from the blog post with my modifications#version number is from the filenamecat <<'EOF' >> opencl-driver-intel-cpu/DEBIAN/controlPackage: opencl-driver-intel-cpuVersion: 5.2.0.10002-1Section: libsPriority: optionalArchitecture: amd64Depends: ocl-icd-libopencl1 (>= 2.0), libnuma1Maintainer: Your Name Description: Intel OpenCL CPU implementation This package provides Intel OpenCL implementation which can utilize Intel Core processors.EOF#copy over the documentation into the deb staging areacp opt/intel/opencl-1.2-5.2.0.10002/doc/* opencl-driver-intel-cpu/usr/share/doc/opencl-driver-intel-cpu/
#the icd registry could be copied from opt/intel/opencl-1.2-5.0.0.57/etc/intel64.icd #but it's wrong anyway and we'd have to change it, handle this later#now put the libs where they go in the staging areacp opt/intel/opencl-1.2-5.2.0.10002/lib64/* opencl-driver-intel-cpu/usr/lib/x86_64-linux-gnu/OpenCL/vendors/intel/
#now deal with that icd registrycat <<'EOF' >> opencl-driver-intel-cpu/etc/OpenCL/vendors/intel64.icd/usr/lib/x86_64-linux-gnu/OpenCL/vendors/intel/libintelocl.soEOF#finally build the deb packagedpkg-deb --build opencl-driver-intel-cpu
#and install itsudo dpkg --install opencl-driver-intel-cpu.deb
sudo apt-get install -f
sudo ldconfig
clinfo #this verifies it installed correctly#cleanuprm -rf opencl-driver-intel-cpu opencl_runtime_16.1_x64_ubuntu_5.2.0.10002*
rm -rf opt
Comments (4)
Raj Bhattacharjea
Now that Intel officially supports OpenCL Runtime 16.1 on Ubuntu, you don't have to do these tricks to get it to install. Running "install.sh" or "install_GUI.sh" from the tarball downloaded in this script works just fine.
Bastian Köcher
Nice to know that this worked for you. I don't know why, but the install script won't run under ubuntu 16.04 for me :(
aputsiaqgeisler
Elevate your preparation for the Salesforce Data-Cloud-Consultant Practice Questions with our expertly crafted practice questions. Designed to mirror the complexity and depth of the actual exam, these questions cover all critical areas, from data governance and architecture to integration and security. Each question is accompanied by detailed explanations to enhance your understanding and ensure you grasp the key concepts. Whether you’re a seasoned professional or new to the Salesforce ecosystem, our practice questions provide the targeted practice you need to boost your confidence and improve your exam readiness. Master the nuances of Salesforce Data Cloud and position yourself as a knowledgeable consultant ready to drive data-driven solutions for your organization. Start practicing today and take a significant step toward acing your certification!
Vincento Webbv
I love how A Small World Cup recreates the atmosphere and excitement of a real World Cup, but with a simpler scale and structure.
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.
Now that Intel officially supports OpenCL Runtime 16.1 on Ubuntu, you don't have to do these tricks to get it to install. Running "install.sh" or "install_GUI.sh" from the tarball downloaded in this script works just fine.
Nice to know that this worked for you. I don't know why, but the install script won't run under ubuntu 16.04 for me :(
Elevate your preparation for the Salesforce Data-Cloud-Consultant Practice Questions with our expertly crafted practice questions. Designed to mirror the complexity and depth of the actual exam, these questions cover all critical areas, from data governance and architecture to integration and security. Each question is accompanied by detailed explanations to enhance your understanding and ensure you grasp the key concepts. Whether you’re a seasoned professional or new to the Salesforce ecosystem, our practice questions provide the targeted practice you need to boost your confidence and improve your exam readiness. Master the nuances of Salesforce Data Cloud and position yourself as a knowledgeable consultant ready to drive data-driven solutions for your organization. Start practicing today and take a significant step toward acing your certification!
I love how A Small World Cup recreates the atmosphere and excitement of a real World Cup, but with a simpler scale and structure.