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-wheelsBuild the project and install the Python bindings in editable mode:
pip install -v -e python/python python/example/matmul.pypytest python/test/test_torch.py -v -s./build/bin/gc-opt --gpu-dev-props='arch=pvc' --gc-gpu-pipeline='dump' linalg_on_tensors.mlir