https://github.com/taichi-dev/taichi
Taichi是图形计算基础设施公司,最出名的产品是太极编程语言,一个嵌入在 Python 中的并行编程语言,简化了高性能图形学。2022 年初宣布完成 $50M A轮融资,虽然项目已经存在 5+ 年了,但是广为人知还是因为 2020 年初知乎上的「99行代码的冰雪奇缘」.
Taichi 可以应用的场景有 Python 加速、3D 渲染等等,2022 年的 Taichi 体素大赛(Taichi Voxel Challenge)的比赛内容就是用 Taichi 实现简单精致且可爱的体素渲染。
------------------------
Productive & portable high-performance programming in Python.
pip install taichi # Install Taichi Lang
ti gallery # Launch demo galleryWhat is Taichi Lang?
Taichi Lang is an open-source, imperative, parallel programming language for high-performance numerical computation. It is embedded in Python and uses just-in-time (JIT) compiler frameworks, for example LLVM, to offload the compute-intensive Python code to the native GPU or CPU instructions.
The language has broad applications spanning real-time physical simulation, numerical computation, augmented reality, artificial intelligence, vision and robotics, visual effects in films and games, general-purpose computing, and much more.
Why Taichi Lang?
- Built around Python: Taichi Lang shares almost the same syntax with Python, allowing you to write algorithms with minimal language barrier. It is also well integrated into the Python ecosystem, including NumPy and PyTorch.
- Flexibility: Taichi Lang provides a set of generic data containers known as SNode (/ˈsnoʊd/), an effective mechanism for composing hierarchical, multi-dimensional fields. This can cover many use patterns in numerical simulation (e.g. spatially sparse computing).
- Performance: With the
@ti.kerneldecorator, Taichi Lang's JIT compiler automatically compiles your Python functions into efficient GPU or CPU machine code for parallel execution. - Portability: Write your code once and run it everywhere. Currently, Taichi Lang supports most mainstream GPU APIs, such as CUDA and Vulkan.
- ... and many more features! A cross-platform, Vulkan-based 3D visualizer, differentiable programming, quantized computation (experimental), etc.
Getting Started
Installation
Prerequisites:
- Operating systems
- Windows
- Linux
- macOS
- Python: 3.6 ~ 3.10 (64-bit only)
- Compute backends
- x64/ARM CPUs
- CUDA
- Vulkan
- OpenGL (4.3+)
- Apple Metal
- WebAssembly (experiemental)
Use Python's package installer pip to install Taichi Lang:
pip install --upgrade taichiWe also provide a nightly package. Note that nightly packages may crash because they are not fully tested. We cannot guarantee their validity, and you are at your own risk trying out our latest, untested features. The nightly packages can be installed from our self-hosted PyPI (Using self-hosted PyPI allows us to provide more frequent releases over a longer period of time)
pip install -i https://pypi.taichi.graphics/simple/ taichi-nightlySee Get started for more information.
Build from source
If you wish to try our our experimental features or build Taichi Lang for your own environments, see Developer installation.
Documentation
from https://github.com/taichi-dev/taichi








No comments:
Post a Comment