taichi-dev / taichi

Productive, portable, and performant GPU programming in Python.
https://taichi-lang.org
Apache License 2.0
25.35k stars 2.27k forks source link

FieldsBuilder raise runtime error on cc backend #5143

Open erizmr opened 2 years ago

erizmr commented 2 years ago

Describe the bug SNode writer raise runtime error with FieldsBuilder on cc backend.

To Reproduce

import taichi as ti
ti.init(arch=ti.cc, log_level=ti.TRACE)

dual_root = ti.FieldsBuilder()
x_dual = ti.field(float)
dual_root.dense(ti.i, 5).place(x_dual)
dual_root.finalize()

Log/Screenshots image image

Additional comments The script works fine on cpu, cuda, vulkan, opengl.

k-ye commented 2 years ago

Is there any specific reason that you want to use the CC backend..?

erizmr commented 2 years ago

Is there any specific reason that you want to use the CC backend..?

There are test cases based on the cc backends.. ioi

k-ye commented 2 years ago

OK... If no-one is using it, we should just drop it later. It's not worth the maintenance cost.