2018-02-19 13:53:48 +01:00
# Intel(R) Graphics Compute Runtime for OpenCL(TM)
## Building
2018-04-18 16:27:52 +02:00
*Instructions assume clean Centos 7.4.1708 installation.**
2018-02-19 13:53:48 +01:00
2018-02-20 12:37:45 +01:00
1. Download & install required dependencies
2018-02-19 13:53:48 +01:00
Example:
```shell
2018-04-18 16:27:52 +02:00
sudo yum groups install "Development Tools"
sudo yum install centos-release-scl epel-release
2018-10-17 15:45:14 +02:00
sudo yum install devtoolset-4-gcc-c++ cmake3 ninja-build
2018-04-18 16:27:52 +02:00
sudo /usr/sbin/alternatives --install /usr/bin/cmake cmake /usr/bin/cmake3 50
2018-02-19 13:53:48 +01:00
```
2019-07-02 08:10:37 -04:00
2. Install required dependencies
2018-10-17 15:45:14 +02:00
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 IGC and GmmLib repositories to build 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 13:53:48 +01:00
```
workspace
|- neo https://github.com/intel/compute-runtime
```
Example:
```shell
git clone https://github.com/intel/compute-runtime neo
```
Note: Instructions for compiling * Intel Graphics Compiler * copied from https://github.com/intel/intel-graphics-compiler/blob/master/README.md
2018-10-17 15:45:14 +02:00
4. Create folder for build:
2018-02-19 13:53:48 +01:00
Example:
```shell
mkdir build
```
2018-10-17 15:45:14 +02:00
5. Enabling additional extension
2018-04-18 16:27:52 +02: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 15:45:14 +02:00
6. Build complete driver:
2018-02-19 13:53:48 +01:00
```shell
cd build
2018-10-17 15:45:14 +02:00
scl enable devtoolset-4 "cmake -DBUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release ../neo"
scl enable devtoolset-4 "make -j `nproc` package"
2018-02-19 13:53:48 +01:00
```
2018-04-18 16:27:52 +02:00
## Installing
2018-02-19 13:53:48 +01:00
2018-04-18 16:27:52 +02:00
To install OpenCL driver please use rpm package generated during build
2018-02-19 13:53:48 +01:00
Example:
```shell
2018-04-18 16:27:52 +02:00
sudo rpm -i intel-opencl-1.0-0.x86_64-igdrcl.rpm
2018-02-19 13:53:48 +01:00
```
2018-04-18 16:27:52 +02:00
___(*) Other names and brands my be claimed as property of others.___