-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changing all pybuda refereneces from README and cmake files from pybu…
…da to tt-forge (#10) Rename all pybuda to ttforge in all build files. This means all targets/env variables are renamed from `PYBUDA` to `TTFORGE` for example `PYBUDA_TOOLCHAIN_DIR` -> `TTFORGE_TOOLCHAIN_DIR`. We are also renaming `/opt/pybuda_toolchain` dir to `/opt/ttforge_toolchain`. Tested: * Build works after clean build * I can run `pytest -svv pybuda/test/test_api.py::test_torch` after building **For folks which already have** `/opt/pybuda_toolchain` with dependencies in it you can create link from `/opt/ttforge_toolchain` to `/opt/pybuda_toolchain` like this: `sudo ln -s pybuda-toolchain/ ttforge-toolchain` resolves #2
- Loading branch information
1 parent
707de2d
commit eda3539
Showing
17 changed files
with
110 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,35 @@ | ||
### Building dependencies | ||
* `cmake` | ||
* `clang` | ||
* `Ninja` - sudo apt-get install ninja-build | ||
Building dependencies | ||
----- | ||
* `cmake3.20` | ||
* `clang` and `clang++-17` | ||
* `Ninja` | ||
* `Python3.10` | ||
|
||
### Building environment | ||
This is one off step. It will pull all dependencies needed for tt-forge. | ||
Building environment | ||
----- | ||
This is one off step to build the toolchain and create virtual environment for tt-forge. | ||
Generally you need to run this step only once, unless you want to update the toolchain. | ||
|
||
* `git submodule update --init --recursive -f` | ||
* `source env/activate` | ||
* `cmake -B env/build env` | ||
* `cmake --build env/build` | ||
|
||
### Build tt-forge | ||
Build tt-forge | ||
----- | ||
* `source env/activate` | ||
* `cmake -G Ninja -B build .` | ||
* `cmake --build build` | ||
|
||
### Cleanup | ||
Cleanup | ||
----- | ||
* `rm -rf build` - to cleanup tt-forge build artifacts. | ||
* `./clean_all.sh` - to cleanup all build artifacts (tt-forge/tvm/tt-mlir/tt-metal). This will not remove toolchain dependencies. | ||
|
||
### Environment variables: | ||
Environment variables: | ||
----- | ||
* `TTMLIR_TOOLCHAIN_DIR` - points to toolchain dir where dependencies of TTLMIR will be installed. If not defined it defaults to /opt/ttmlir-toolchain | ||
* `TTMLIR_VENV_DIR` - points to virtual environment directory of TTMLIR.If not defined it defaults to /opt/ttmlir-toolchain/venv | ||
* `PYBUDA_TOOLCHAIN_DIR` - points to toolchain dir where dependencies of PyBuda will be installed. If not defined it defaults to /opt/pybuda-toolchain | ||
* `PYBUDA_VENV_DIR` - points to virtual environment directory of tt-forge. If not defined it defaults to /opt/pybuda-toolchain/venv | ||
* `PYBUDA_PYTHON_VERSION` - set to override python version. If not defined it defaults to python3.10 | ||
* `TTFORGE_TOOLCHAIN_DIR` - points to toolchain dir where dependencies of tt-forge will be installed. If not defined it defaults to /opt/ttforge-toolchain | ||
* `TTFORGE_VENV_DIR` - points to virtual environment directory of tt-forge. If not defined it defaults to /opt/ttforge-toolchain/venv | ||
* `TTFORGE_PYTHON_VERSION` - set to override python version. If not defined it defaults to python3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
This directory contains all environment dependencies for the project. | ||
All dependencies are installed to /opt/pybuda-toolchain. | ||
|
||
load_env_variables.sh - Script to load the environment variables for the project. | ||
- Its used when downloading dependencies for the project. | ||
- Its also used when activating env for project. This is important since it contains path to different lib/inc paths. | ||
Overview | ||
----- | ||
This directory contains all environment dependencies for tt-forge. By default all dependencies will be installed | ||
to the /opt/ttforge-toolchain directory. To override this behavior, set the `TTFORGE_TOOLCHAIN_DIR` environment variable. | ||
Note that you need to build toolchain only once, unless you want to update it. | ||
|
||
Dependencies: | ||
(Python.3.10)[https://www.python.org/downloads/release/python-3100/] - Version of python which is compatible with the project. | ||
----- | ||
* [Python.3.10](https://www.python.org/downloads/release/python-3100/) - Version of python which is compatible with the project. | ||
* [cmake3.20](https://cmake.org/download/) - Version of cmake which is compatible with the project. | ||
|
||
Building the toolchain | ||
----- | ||
To build toolchain you need to run the following commands from the root directory of the project: | ||
* `source env/activate` - This command will set all environment variables needed for the project. | ||
* `cmake -B env/build env` - This command will generate the build files for the project. | ||
* `cmake --build env/build` - This command will build the project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.