2021-06-16 03:05:19 +08:00
|
|
|
<!---
|
|
|
|
|
|
|
|
Copyright (C) 2020-2021 Intel Corporation
|
|
|
|
|
|
|
|
SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
2020-02-27 17:38:02 +08:00
|
|
|
# Building NEO driver
|
|
|
|
|
|
|
|
Instructions have been tested on Ubuntu* and CentOS*. They assume a clean installation of a stable version.
|
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
|
|
|
|
2020-02-27 17:38:02 +08:00
|
|
|
Example (Ubuntu):
|
2018-02-19 20:53:48 +08:00
|
|
|
|
|
|
|
```shell
|
2019-10-31 19:41:43 +08:00
|
|
|
sudo apt-get install cmake g++ git pkg-config
|
2018-02-19 20:53:48 +08:00
|
|
|
```
|
|
|
|
|
2020-02-27 17:38:02 +08:00
|
|
|
Example (CentOS):
|
|
|
|
|
|
|
|
```shell
|
|
|
|
sudo dnf install gcc-c++ cmake git make
|
|
|
|
```
|
|
|
|
|
|
|
|
2. Install required dependencies
|
2018-10-17 21:45:14 +08:00
|
|
|
|
2019-10-31 19:41:43 +08:00
|
|
|
Neo requires:
|
|
|
|
- [Intel(R) Graphics Compiler for OpenCL(TM)](https://github.com/intel/intel-graphics-compiler)
|
|
|
|
- [Intel(R) Graphics Memory Management](https://github.com/intel/gmmlib)
|
2018-10-17 21:45:14 +08:00
|
|
|
|
2022-03-02 17:47:08 +08:00
|
|
|
Please visit their repositories for building and instalation instructions.
|
2020-02-27 17:38:02 +08:00
|
|
|
|
|
|
|
Use versions compatible with selected [Neo release](https://github.com/intel/compute-runtime/releases).
|
2018-10-17 21:45:14 +08:00
|
|
|
|
|
|
|
3. Create workspace folder and download sources:
|
|
|
|
|
2018-02-19 20:53:48 +08:00
|
|
|
Example:
|
|
|
|
|
|
|
|
```shell
|
2019-10-31 19:41:43 +08:00
|
|
|
mkdir workspace
|
|
|
|
cd workspace
|
2018-02-19 20:53:48 +08:00
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2020-02-27 17:38:02 +08:00
|
|
|
5. (Optional) Enabling additional extensions
|
2018-04-18 22:27:52 +08:00
|
|
|
|
2020-02-27 17:38:02 +08:00
|
|
|
* [cl_intel_va_api_media_sharing](https://github.com/intel/compute-runtime/blob/master/opencl/doc/cl_intel_va_api_media_sharing.md)
|
2018-04-18 22:27:52 +08:00
|
|
|
|
2019-10-31 19:41:43 +08:00
|
|
|
6. Build and install
|
2018-02-19 20:53:48 +08:00
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
```shell
|
2019-10-31 19:41:43 +08:00
|
|
|
cd build
|
2021-11-10 18:34:06 +08:00
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DNEO_SKIP_UNIT_TESTS=1 ../neo
|
2019-10-31 19:41:43 +08:00
|
|
|
make -j`nproc`
|
|
|
|
sudo make install
|
2018-02-19 20:53:48 +08:00
|
|
|
```
|
|
|
|
|
2020-03-13 16:02:38 +08:00
|
|
|
___(*) Other names and brands may be claimed as property of others.___
|