Skip to content

Commit

Permalink
Auto Format
Browse files Browse the repository at this point in the history
  • Loading branch information
taichi-gardener committed Nov 22, 2021
1 parent 3794669 commit a3d7193
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/taichi/lang/kernel_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,8 @@ def call_back():
ret_dt = self.return_type
has_ret = ret_dt is not None

if has_ret or (ti.current_cfg().async_mode and has_external_arrays):
if has_ret or (ti.current_cfg().async_mode
and has_external_arrays):
ti.sync()

if has_ret:
Expand Down

0 comments on commit a3d7193

Please sign in to comment.