Learn Taichi AOT deployment with examples.
This book is available online at https://liong.work/taichi-aot-by-examples.github.io/.
To run the examples, you can either build all of them at once in the repository root:
mkdir build && cd build
cmake ..
cmake --build .
Or build each one of them:
cd 01-version # Note that we step into an example here.
mkdir build && cd build
cmake ..
cmake --build .
But either way, please run the examples with repository root as the working directory, otherwise some hardcoded paths might fail.
You need only the following tools to build and run the examples.
- CMake 3.10+
- Python 3.10+
But if you want to deploy the website with the automation I wrote. You have to install these extra dependencies.
- PowerShell 6.0+ (On *nix platforms too)
- Rust 2018 Edition
mdBook
Every example has a copy of stdout
log available in tests/refs
as reference.
You can run Test-AllExamples.ps1
to check if the current output matches the
log as expected. Or you can update the logs with
Test-AllExamples.ps1 -UpdateLogs
.
If any example or referential output has been modified, you can update the
Markdown files in mdbook/src
with python scripts/extract-mdbook.py
and
push this book to a Github Pages repository with
scripts/Publish-GithubPages.ps1
.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.
In addition, the generated textual content is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.