Initial support for oneAPI Level Zero

Change-Id: I221df8427b1844237a4d9d900c58512706b0be0f
This commit is contained in:
Brandon Fliflet
2020-03-06 11:09:57 +01:00
committed by ocldev
parent 612f47ced3
commit 27f4bce42f
277 changed files with 27508 additions and 1 deletions

30
level_zero/doc/BUILD.md Normal file
View File

@ -0,0 +1,30 @@
# Building Level Zero
These instructions have been tested on Ubuntu* and complement those existing for NEO.
1. Install Level Zero loader
Build and install Level Zero loader, as indicated in [https://github.com/oneapi-src/level-zero](https://github.com/oneapi-src/level-zero).
Both packages generated from Level Zero loader are needed.
2. Build Level Zero driver with NEO
This generates `libze_intel_gpu.so`.
3. Compile your application
Compilation needs to include the Level Zero headers from the Level Zero loader and to link against the loader library.
```shell
g++ ~/zello_world.cpp -o zello_world -lze_loader
```
4. Execute your application
Set your paths to find the ze_loader and the ze_intel_gpu libraries if not present in standard paths.
```shell
./zello_world
```
___(*) Other names and brands may be claimed as property of others.___