2022年12月14日更新Ubuntu系统后,taichi运行速度就变的很慢,比原来的速度慢8-9倍,运行文档里的demo,多粒子和布料坠落的FPS只有7,8左右。
为了验证是不是系统的原因,我又装了一个全新的Ubuntu22.04,除了pip没有其它软件,更新前和更新后速度明显存在差异。当然也不排除Python的包最近更新过。
不好意思最近才工作。 ubuntu是22.04
python3 Clothe-simulation.py
[Taichi] version 1.3.0, llvm 15.0.4, commit 0f25b95e, linux, python 3.10.6
[Taichi] Starting on arch=x64
[I 12/27/22 10:45:52.625 12925] [vulkan_device_creator.cpp:pick_physical_device@399] Found Vulkan Device 0 (llvmpipe (LLVM 13.0.1, 256 bits))
[I 12/27/22 10:45:52.626 12925] [vulkan_device_creator.cpp:create_logical_device@469] Vulkan Device "llvmpipe (LLVM 13.0.1, 256 bits)" supports Vulkan 0 version 1.2.204
WARNING: lavapipe is not a conformant vulkan implementation, testing use only.
[I 12/27/22 10:45:52.669 12925] [vulkan_device.cpp:create_swap_chain@2429] Creating suface of 1024x995
/home/k/文档/py-test/Clothe-simulation.py:102: DeprecationWarning: Calling builtin function "min" in Taichi scope is deprecated. Please use "ti.min" instead.
v[i] -= min(v[i].dot(normal), 0) * normal
[W 12/27/22 10:45:53.717 12925] [vulkan_device.cpp:buffer@620] Overriding last binding
[W 12/27/22 10:45:53.724 12925] [vulkan_device.cpp:buffer@620] Overriding last binding
[I 12/27/22 10:45:53.826 12925] [vulkan_device.cpp:create_swap_chain@2429] Creating suface of 1024x995
python3 multi-p.py
[Taichi] version 1.3.0, llvm 15.0.4, commit 0f25b95e, linux, python 3.10.6
[Taichi] Starting on arch=x64
uname -a
Linux k-Super-Server 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux