2018-02-19 20:53:48 +08:00
# Intel(R) Graphics Compute Runtime for OpenCL(TM)
## Building
2018-04-18 22:27:52 +08:00
*Instructions assume clean Ubuntu 16.04.3 LTS installation.**
2018-02-19 20:53:48 +08:00
2018-10-17 21:45:14 +08:00
1. Download & install required packages
2018-02-19 20:53:48 +08:00
Example:
```shell
2018-10-26 01:11:45 +08:00
sudo apt-get install ccache cmake g++ git pkg-config
2018-02-19 20:53:48 +08:00
```
2018-02-20 19:37:45 +08:00
See [LIMITATIONS.md ](https://github.com/intel/compute-runtime/blob/master/documentation/LIMITATIONS.md ) for other requirements and dependencies, when building and installing NEO.
2018-10-17 21:45:14 +08:00
2. Instal required dependencies
Neo requires [Intel(R) Graphics Compiler for OpenCL(TM) ](https://github.com/intel/intel-graphics-compiler ) and [Intel(R) Graphics Memory Management ](https://github.com/intel/gmmlib ) to be installed on your system.
Please visit theirs repositories and install intel-igc-opencl-devel and intel-gmmlib-devel packages including all required dependencies
3. Create workspace folder and download sources:
Example:
2018-02-19 20:53:48 +08:00
```
workspace
|- neo https://github.com/intel/compute-runtime
```
Example:
```shell
git clone https://github.com/intel/compute-runtime neo
```
2018-10-17 21:45:14 +08:00
4. Create folder for build:
2018-02-19 20:53:48 +08:00
Example:
```shell
mkdir build
```
2018-10-17 21:45:14 +08:00
5. Enabling additional extension
2018-04-18 22:27:52 +08:00
* [cl_intel_va_api_media_sharing ](https://github.com/intel/compute-runtime/blob/master/documentation/cl_intel_va_api_media_sharing.md )
2018-10-17 21:45:14 +08:00
6. Build complete driver:
2018-02-19 20:53:48 +08:00
```shell
cd build
cmake -DBUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release ../neo
make -j`nproc` package
```
2018-04-18 22:27:52 +08:00
## Installing
2018-02-19 20:53:48 +08:00
To install OpenCL driver please use deb package generated during build
Example:
```shell
2018-08-31 01:46:42 +08:00
sudo dpkg -i intel-opencl-*.x86_64-igdrcl.deb
2018-02-19 20:53:48 +08:00
```
2018-04-18 22:27:52 +08:00
___(*) Other names and brands my be claimed as property of others.___