Skip to content

Commit

Permalink
#4076: Add instructions for execution for programming_examples and fi…
Browse files Browse the repository at this point in the history
…x one typo
  • Loading branch information
tt-rkim committed Dec 4, 2023
1 parent bc59206 commit 94c2821
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docs/source/tt_metal/examples/dram_loopback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ full example program in
``tt_metal/programming_examples/loopback/loopback.cpp``, so you can follow
along.

To build and execute, you may use the following commands. Note that we include
the necessary environment variables here, but you may possibly need more
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/programming_examples/loopback

Silicon accelerator setup
-------------------------

Expand Down
12 changes: 12 additions & 0 deletions docs/source/tt_metal/examples/eltwise_binary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ previous examples. Note that we have this exact, full example program in
``tt_metal/programming_examples/eltwise_binary/eltwise_binary.cpp``, so you can
follow along.

To build and execute, you may use the following commands. Note that we include
the necessary environment variables here, but you may possibly need more
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/programming_examples/eltwise_binary

New buffers
-----------

Expand Down
12 changes: 12 additions & 0 deletions docs/source/tt_metal/examples/eltwise_sfpu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ previous examples. Note that we have this exact, full example program in
``tt_metal/programming_examples/eltwise_sfpu/eltwise_sfpu.cpp``, so you can
follow along.

To build and execute, you may use the following commands. Note that we include
the necessary environment variables here, but you may possibly need more
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/programming_examples/eltwise_sfpu

Circular buffers for data movement to/from compute engine
---------------------------------------------------------

Expand Down
14 changes: 13 additions & 1 deletion docs/source/tt_metal/examples/matmul_multi_core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,19 @@ All important ways we use the API different are in the new
``matmul_multi_core`` function.

The full example program is in
``tt_metal/programming_examples/matmul_single_core/matmul_multi_core.cpp``
``tt_metal/programming_examples/matmul_multi_core/matmul_multi_core.cpp``

To build and execute, you may use the following commands. Note that we include
the necessary environment variables here, but you may possibly need more
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/programming_examples/matmul_multi_core

Accessing all the cores
-----------------------
Expand Down
12 changes: 12 additions & 0 deletions docs/source/tt_metal/examples/matmul_single_core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ the propram.
The full example program is in
``tt_metal/programming_examples/matmul_single_core/matmul_single_core.cpp``

To build and execute, you may use the following commands. Note that we include
the necessary environment variables here, but you may possibly need more
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/programming_examples/matmul_single_core

Host Code
---------

Expand Down
2 changes: 2 additions & 0 deletions tt_metal/programming_examples/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ include $(TT_METAL_HOME)/tt_metal/programming_examples/matmul_multi_core/module.
include $(TT_METAL_HOME)/tt_metal/programming_examples/matmul_multicore_reuse/module.mk
include $(TT_METAL_HOME)/tt_metal/programming_examples/matmul_multicore_reuse_mcast/module.mk

# Need to depend on set_up_kernels.

PROFILER_TESTS += \
programming_examples/profiler/test_custom_cycle_count\
programming_examples/profiler/test_full_buffer
Expand Down

0 comments on commit 94c2821

Please sign in to comment.