Productive, portable, and performant GPU programming in Python.
Productive, portable, and performant GPU programming in Python.
pip install taichi # Install Taichi Lang
ti gallery # Launch demo galleryTaichi 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.
@ti.kernel decorator, Taichi Lang's JIT compiler automatically compiles your Python functions into efficient GPU or CPU machine code for parallel execution.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-nightlyHere is how you can program a 2D fractal in Taichi:
…If Taichi Lang is properly installed, you should get the animation below 🎉:
See Get started for more information.
If you wish to try our experimental features or build Taichi Lang for your own environments, see Developer installation.
Kudos to all of our amazing contributors! Taichi Lang thrives through open-source. In that spirit, we welcome all kinds of contributions from the community. If you would like to participate, check out the Contribution Guidelines first.
Contributor avatars are randomly shuffled.
Taichi Lang is distributed under the terms of Apache License (Version 2.0).
See Apache License for details.
For more information about the events or community, please refer to this page
If you use Taichi Lang in your research, please cite the corresponding papers:
Invoke materialize() only before calling a Taichi kernel
Support setting the random seed during initialization
[bug] gfx/Vulkan: f64 field at a 4 mod 8 offset silently aliases the last element of the previous field
ti.ad.Tape(validation=True) misses loop-carried read-after-write, returning a silently wrong gradient
Vulkan backend hangs indefinitely at a precise grid-size threshold on AMD RX 7900 XTX (not a VRAM limit)
There seems to be a bug in the GGUI interface of Taichi
Scikit-build (classic) 1.0 internals
Calling node.place(field_1) after field_2.from_numpy() raises RuntimeError "dense node must have at least one child."
Invalid Format Specifier for `print_memory_profiler_info()`
pip install taichi failed on a supercomputer