Skip to content

Commit

Permalink
⚡ 修改taichi为packed模式,优化内存占用
Browse files Browse the repository at this point in the history
  • Loading branch information
yanang007 committed Jan 1, 2023
1 parent edd4594 commit 57e117d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/demag/main_demag.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
from metalpy.scab.utils.misc import define_inducing_field

from config import get_exec_config
from metalpy.utils.taichi import ti_prepare
from metalpy.utils.time import Timer


def main(grid_size):
ti_prepare(packed=True)
a, c = 10, 40
timer = Timer()

Expand Down

0 comments on commit 57e117d

Please sign in to comment.