File: README.md

package info (click to toggle)
level-zero 1.28.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,308 kB
  • sloc: cpp: 149,246; ansic: 16,655; python: 12,807; makefile: 5
file content (42 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# pyzes Examples

This directory contains example scripts demonstrating how to use the pyzes module.

**IMPORTANT:** The usage instructions below apply to pyzes installed via pip. If you've cloned this repository locally, you should run the examples directly from the `test/` directory in the repository root instead.

## Using Examples After Installation

**These instructions are for users who installed pyzes via pip:**

After installing pyzes via pip:
```bash
pip install pyzes
```

You can run examples directly:
```bash
python3 -m examples.pyzes_example
python3 -m examples.pyzes_black_box_test -h
```

---

## If You Cloned the Repository

If you cloned the level-zero repository locally, run the examples directly from the repository:

```bash
cd bindings/sysman/python/source/examples
python3 pyzes_example.py
python3 pyzes_black_box_test.py -h
```

The examples in this `source/examples/` directory are packaged for pip distribution only.

---

## Requirements

- Python 3.10+
- Intel GPU with Level-Zero drivers installed
- pyzes module