Skip to content

Commit

Permalink
Merge branch 'main' into shwetankTT/temp_fix_rn50
Browse files Browse the repository at this point in the history
  • Loading branch information
shwetankTT authored May 30, 2024
2 parents bec3cd4 + ae26f1e commit 60a238b
Show file tree
Hide file tree
Showing 93 changed files with 230 additions and 2,176 deletions.
35 changes: 0 additions & 35 deletions .github/actions/stress-build-and-run/action.yml

This file was deleted.

17 changes: 4 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ Table of Contents
- [Setting up Git](#setting-up-git)
- [Setting logger level](#setting-logger-level)
- [Building and viewing the documentation locally](#building-and-viewing-the-documentation-locally)
- [Cleaning the dev environment with `make nuke`](#cleaning-the-dev-environment-with-make-nuke)
- [Tests in tt-metal](#tests-in-tt-metal)
- [Running post-commit regressions](#running-post-commit-regressions)
- [Adding post-commit tests](#adding-post-commit-tests)
Expand Down Expand Up @@ -174,14 +173,6 @@ $ cd ${TT_METAL_HOME} && ./docs/spellcheck.sh update
Commit your changes and the personal dictionary, at docs/aspell-dictionary.pws,
that is changed.

### Cleaning the dev environment with `make nuke`

Normally, `make clean` only clears out build artifacts. It does **not** delete
the built Python dev environment stored at `build/python_env/`.

To delete absolutely everything including the Python environment, use `make
nuke`.

## Tests in tt-metal

Ensure you're in a developer Python environment with necessary environment variables
Expand All @@ -201,8 +192,8 @@ You must run post-commit regressions before you commit something.
These regressions will also run after every pushed commit to the GitHub repo.

```
make build
make tests
cmake --build build --target install
cmake --build build --target tests
./tests/scripts/run_tests.sh --tt-arch $ARCH_NAME --pipeline-type post_commit
```

Expand Down Expand Up @@ -252,7 +243,7 @@ a specific one you'd like to run.

1. Build the API integration tests using the make command,
```
make tests
cmake --build build --target tests
```
2. Run the test binaries from the path **${TT_METAL_HOME}/build/test/tt_metal**

Expand All @@ -268,7 +259,7 @@ fast dispatch, you can

1. Build the unit tests:
```
make tests
cmake --build build --target tests
```
2. Run the test:
```
Expand Down
10 changes: 2 additions & 8 deletions INSTALLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ export TT_METAL_ENV=dev

4. Build & activate.

NEW!! CMake Support
We use CMake for our build flows.

```sh
./build_metal.sh

Expand All @@ -110,13 +111,6 @@ Note about Python environments: You do not have to use `create_venv.sh`. If you
are less familiar with Python and its various environment tools, just use
`create_venv.sh` as shown above.

Old Makefile Flow
```sh
make build

source build/python_env/bin/activate
```

5. Start coding

You are all set! Visit the [TT-NN Basic examples page](https://tenstorrent.github.io/tt-metal/latest/ttnn/ttnn/usage.html#basic-examples) or get started with [simple kernels on TT-Metalium](https://github.com/tenstorrent/tt-metal/blob/main/README.md)
Expand Down
9 changes: 0 additions & 9 deletions Makefile

This file was deleted.

3 changes: 1 addition & 2 deletions docs/source/tt-metalium/tt_metal/examples/dram_loopback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ depending on the most up-to-date installation methods.

export ARCH_NAME=<arch name>
export TT_METAL_HOME=<this repo dir>
make build
make programming_examples/loopback
./build_metal.sh
./build/programming_examples/loopback

Silicon accelerator setup
Expand Down
3 changes: 1 addition & 2 deletions docs/source/tt-metalium/tt_metal/examples/eltwise_binary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ depending on the most up-to-date installation methods.

export ARCH_NAME=<arch name>
export TT_METAL_HOME=<this repo dir>
make build
make programming_examples/eltwise_binary
./build_metal.sh
./build/programming_examples/eltwise_binary

New buffers
Expand Down
3 changes: 1 addition & 2 deletions docs/source/tt-metalium/tt_metal/examples/eltwise_sfpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ depending on the most up-to-date installation methods.

export ARCH_NAME=<arch name>
export TT_METAL_HOME=<this repo dir>
make build
make programming_examples/eltwise_sfpu
./build_metal.sh
./build/programming_examples/eltwise_sfpu

Circular buffers for data movement to/from compute engine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ depending on the most up-to-date installation methods.

export ARCH_NAME=<arch name>
export TT_METAL_HOME=<this repo dir>
make build
make programming_examples/matmul_multi_core
./build_metal.sh
./build/programming_examples/matmul_multi_core

Accessing all the cores
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ The Tensix core architecture's secret weapon is its full user control over memor

export ARCH_NAME=<arch name>
export TT_METAL_HOME=<this repo dir>
make build
make programming_examples/matmul_multi_core
./build_metal.sh
./build/programming_examples/matmul_multi_core_reuse
./build/programming_examples/matmul_multi_core_reuse_mcast

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ depending on the most up-to-date installation methods.

export ARCH_NAME=<arch name>
export TT_METAL_HOME=<this repo dir>
make build
make programming_examples/matmul_single_core
./build_metal.sh
./build/programming_examples/matmul_single_core

Host Code
Expand Down
9 changes: 0 additions & 9 deletions infra/git_hooks/module.mk

This file was deleted.

3 changes: 3 additions & 0 deletions models/utility_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ def enable_persistent_kernel_cache():
"""
Enables persistent compiled kernel caching - disables recompiling the kernels for the duration of running process if built_kernels/.../hash directory with kernel binaries is present.
"""
logger.warning(
"Persistent kernel cache is enabled. Cache invalidation may fail after a rebase and may require deleting the build directory."
)
tt_lib.device.EnablePersistentKernelCache()


Expand Down
168 changes: 0 additions & 168 deletions module.mk

This file was deleted.

14 changes: 0 additions & 14 deletions tests/module.mk

This file was deleted.

Loading

0 comments on commit 60a238b

Please sign in to comment.