Files
metabuilder/mojo/examples/layout_tensor
johndoe6345789 d772201bf1 feat: Replace placeholder examples with official Modular Mojo examples
Added official examples from github.com/modular/modular:
- gpu-intro, gpu-functions, gpu-block-and-warp (GPU programming)
- layout_tensor, layouts (tensor operations)
- life (Conway's Game of Life)
- operators (custom operators)
- process (subprocess handling)
- python-interop (Python integration)
- testing (unit test patterns)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 17:40:19 +00:00
..

LayoutTensor examples

This directory contains examples to accompany Using LayoutTensor.

If you have Pixi installed, you can execute the examples by running the following commands:

pixi run layout_tensor
pixi run layout_tensor_gpu
pixi run layout_tensor_all  # Runs both sets of examples

Note that the GPU examples currently don't run on Apple silicon GPUs.

If you update any of these examples, note that the corresponding examples and accompanying text in the Mojo Manual needs to be updated as well.