2021-06-15 19:05:19 +00:00
<!---
Copyright (C) 2020-2021 Intel Corporation
SPDX-License-Identifier: MIT
-->
2020-02-27 10:38:02 +01:00
# Building NEO driver
Instructions have been tested on Ubuntu* and CentOS*. They assume a clean installation of a stable version.
2018-02-19 13:53:48 +01:00
2018-10-17 15:45:14 +02:00
1. Download & install required packages
2018-02-19 13:53:48 +01:00
2020-02-27 10:38:02 +01:00
Example (Ubuntu):
2018-02-19 13:53:48 +01:00
```shell
2019-10-31 12:41:43 +01:00
sudo apt-get install cmake g++ git pkg-config
2018-02-19 13:53:48 +01:00
```
2020-02-27 10:38:02 +01:00
Example (CentOS):
```shell
sudo dnf install gcc-c++ cmake git make
```
2. Install required dependencies
2018-10-17 15:45:14 +02:00
2019-10-31 12:41:43 +01: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 15:45:14 +02:00
2022-03-02 10:47:08 +01:00
Please visit their repositories for building and instalation instructions.
2020-02-27 10:38:02 +01:00
Use versions compatible with selected [Neo release ](https://github.com/intel/compute-runtime/releases ).
2018-10-17 15:45:14 +02:00
3. Create workspace folder and download sources:
2018-02-19 13:53:48 +01:00
Example:
```shell
2019-10-31 12:41:43 +01:00
mkdir workspace
cd workspace
2018-02-19 13:53:48 +01:00
git clone https://github.com/intel/compute-runtime neo
```
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
```
2020-02-27 10:38:02 +01:00
5. (Optional) Enabling additional extensions
2018-04-18 16:27:52 +02:00
2020-02-27 10:38:02 +01: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 16:27:52 +02:00
2019-10-31 12:41:43 +01:00
6. Build and install
2018-02-19 13:53:48 +01:00
Example:
```shell
2019-10-31 12:41:43 +01:00
cd build
2021-11-10 10:34:06 +00:00
cmake -DCMAKE_BUILD_TYPE=Release -DNEO_SKIP_UNIT_TESTS=1 ../neo
2019-10-31 12:41:43 +01:00
make -j`nproc`
sudo make install
2018-02-19 13:53:48 +01:00
```
2024-10-22 16:19:56 +00:00
## Optional - Building NEO with support for XeKMD EU Debugging
NEO Driver has build options to enable support for EU Debugging with XeKMD. Kernel support for this feature is currently only available via a topic branch hosted at https://gitlab.freedesktop.org/miku/kernel/-/tree/eudebug-dev
To build NEO with support for this feature follow above steps with these additional cmake options added to step 6.
2024-12-12 13:26:54 +00:00
` -DNEO_ENABLE_XE_EU_DEBUG_SUPPORT=1 -DNEO_USE_XE_EU_DEBUG_EXP_UPSTREAM=1`
2024-10-22 16:19:56 +00:00
2018-02-19 13:53:48 +01:00
2020-03-13 09:02:38 +01:00
___(*) Other names and brands may be claimed as property of others.___