Skip to content

Commit

Permalink
#8280: add ninja as a metal dependency as builds are faster with ninj…
Browse files Browse the repository at this point in the history
…a (5-15%)
  • Loading branch information
TT-billteng committed May 13, 2024
1 parent 37862d7 commit 90f1746
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions .github/actions/install-metal-dev-deps/dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
"pandoc",
"libtbb-dev",
"libcapstone-dev",
"pkg-config"
"pkg-config",
"ninja-build"
],
"ubuntu-22.04": [
"git",
"git-lfs",
"pandoc",
"libtbb-dev",
"libcapstone-dev",
"pkg-config"
"pkg-config",
"ninja-build"
]
}
2 changes: 1 addition & 1 deletion INSTALLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Please follow the next additional steps if you want to contribute to the codebas
1. Install dependencies

```sh
sudo apt install clang-6.0=1:6.0.1-14 git git-lfs cmake=3.16.3-1ubuntu1.20.04.1 pandoc libtbb-dev libcapstone-dev pkg-config
sudo apt install clang-6.0=1:6.0.1-14 git git-lfs cmake=3.16.3-1ubuntu1.20.04.1 pandoc libtbb-dev libcapstone-dev pkg-config ninja-build
```

2. Download and install [Doxygen](https://www.doxygen.nl/download.html), (v1.9 or higher, but less than v1.10)
Expand Down
4 changes: 2 additions & 2 deletions build_metal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ else
fi

echo "Building tt-metal"
cmake -B build
cmake --build build -- -j`nproc`
cmake -B build -G Ninja
cmake --build build
cmake --build build --target metal-install

echo "Creating virtual env in: $PYTHON_ENV_DIR"
Expand Down

0 comments on commit 90f1746

Please sign in to comment.