commit | ce1cfee405d07e763bdb655a6c96746b78d9c211 | [log] [tgz] |
---|---|---|
author | Aart Bik <ajcbik@google.com> | Fri May 17 14:36:40 2024 -0700 |
committer | GitHub <noreply@github.com> | Fri May 17 14:36:40 2024 -0700 |
tree | bf4da894cefba3323e7edc97160e714326038556 | |
parent | 0871042da1ee355794980b24b02494827fcf0b1c [diff] | |
parent | aacda8a53e357c46520aaab493d3ed7870088a67 [diff] |
Merge pull request #2 from MPACT-ORG/bik [mpact] set up build instructions
The MPACT project's main objective is to dramatically reduce the effort required to create highly optimizing HPC and ML compilers for a large class of architectures using LLVM and MLIR. We will do this by providing a declarative language-based mechanism for collecting and expressing critical aspects of a target architecture in a way that can be reasoned about and leveraged by all passes in both MLIR and LLVM.
To build and run the MPACT compiler from source (for developers), please follow the steps below.
Use the following commands to clone the MPACT compiler repository.
git clone https://github.com/MPACT-ORG/mpact-compiler.git cd mpact-compiler git submodule update --init --progress
All following commands assume you remain in the mpact-compiler
directory.
The following commands initialize a virtual environment.
python3.11 -m venv mlir_venv # one time set up source mlir_venv/bin/activate # for each session
Note that currently we rely on torch-mlir
requirements defined in the submodule to ensure all the build requirements are consistent.
python -m pip install --upgrade pip python -m pip install -r externals/torch-mlir/requirements.txt python -m pip install -r externals/torch-mlir/torchvision-requirements.txt