Skip to content

Commit

Permalink
fix mass_spring_3d_ggui backend (#5127)
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhaoliang authored Jun 12, 2022
1 parent e10a11b commit 573f89e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/taichi/examples/ggui_examples/mass_spring_3d_ggui.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import taichi as ti
ti.init(arch=ti.gpu) # Alternatively, ti.init(arch=ti.cpu)

arch = ti.vulkan if ti._lib.core.with_vulkan() else ti.cuda
ti.init(arch=arch)

n = 128
quad_size = 1.0 / n
Expand Down

0 comments on commit 573f89e

Please sign in to comment.