Runtime Error while running “diffmpm3d.py” in the examples of difftaichi-master

Taichi==1.6.0 | python==3.10.11
I’m new in taichi and I have tried running some files to learn.
But when I ran “diffmpm3d.py” in the examples of difftaichi-master,the following error occurred.
What can I do to fix the error?
Thanks!

这个可能和 vulkan 后端有关,可以试试 ti.init(arch=ti.cpu) 先确认一下 CPU 后端是否正常运行

1 个赞

谢谢!CPU后端可以正常运行。
我再研究下如何调整vulkan后端,也请问下有什么调整的思路。

您好,Vulkan后端对autodiff的支持并不完善,一半还是比较建议在CPU或者CUDA上面跑diffmpm

1 个赞

好的!谢谢您!

再次感谢!@houkensjtu @jimyang