We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以在外面加一个假循环串行最外层:
for _ in range(1): for i in range(100): # 串行 ...
The text was updated successfully, but these errors were encountered:
倒是我在太极图形课S1第03讲看到ti.init()中可以写一个cpu_max_num_thread=1来保证串行。但不知道如何单独运用到一个@ti.kernel中
Sorry, something went wrong.
Taichi v.1.0.0中提供了ti.loop_config(serialize=True)可以十分优雅地解决这个问题!😆
ti.loop_config(serialize=True)
No branches or pull requests
可以在外面加一个假循环串行最外层:
The text was updated successfully, but these errors were encountered: