faster-python-with-taichi icon indicating copy to clipboard operation
faster-python-with-taichi copied to clipboard

ti.func和ti.kernel的区别?

Open hackerchenzhuo opened this issue 3 years ago • 1 comments

is_prime = ti.func(is_prime)
count_primes = ti.kernel(count_primes)

请问这里面 ti.func和ti.kernel使用依据是什么?

hackerchenzhuo avatar Sep 11 '22 06:09 hackerchenzhuo

可以看看这里的文档:https://docs.taichi-lang.org/docs/master/syntax

neozhaoliang avatar Sep 19 '22 08:09 neozhaoliang