Skip to content

Commit

Permalink
Add JAX configuration for disabling async dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Oct 25, 2024
1 parent b8e04d8 commit 1792699
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions brainpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,8 @@

del deprecation_getattr2

# jax config
import os
os.environ['XLA_FLAGS'] = '--xla_cpu_use_thunk_runtime=false'
import jax
jax.config.update('jax_cpu_enable_async_dispatch', False)

0 comments on commit 1792699

Please sign in to comment.