Skip to content

About

MLIR-based toolkit targeting intel heterogeneous hardware

Resources

Code of conduct

Contributing

Security policy

Stars

61 stars

Watchers

13 watching

Forks

Build and install Python bindings

Create a virtual environment:

python -m venv .venv --prompt gc
. .venv/bin/activate
pip install nanobind pytest torch torch-mlir \
  --extra-index-url https://download.pytorch.org/whl/xpu \
  --find-links https://github.com/llvm/torch-mlir-release/releases/expanded_assets/dev-wheels

Build the project and install the Python bindings in editable mode:

pip install -v -e python/

Run Python examples

python python/example/matmul.py

Run Python unit tests

pytest python/test/test_torch.py -v -s

Run gc-opt

./build/bin/gc-opt --gpu-dev-props='arch=pvc' --gc-gpu-pipeline='dump' linalg_on_tensors.mlir

About

MLIR-based toolkit targeting intel heterogeneous hardware

Resources

Code of conduct

Contributing

Security policy

Stars

61 stars

Watchers

13 watching

Forks

Used by

Contributors

Languages