Skip to content

Commit

Permalink
use nogil and cache in numba decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed May 15, 2023
1 parent 70954c1 commit 623a0ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrfu/pyrf/int_sph_dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def int_sph_dist(vdf, speed, phi, theta, speed_grid, **kwargs):
return pst


@numba.jit(nopython=True, parallel=True, fastmath=True)
@numba.jit(cache=True, nogil=True, parallel=True, nopython=True)
def mc_pol_1d(
vdf,
v,
Expand Down Expand Up @@ -456,7 +456,7 @@ def mc_cart_3d(
return f_g


@numba.jit(nopython=True, parallel=True, fastmath=True)
@numba.jit(cache=True, nogil=True, parallel=True, nopython=True)
def mc_cart_2d(
vdf,
v,
Expand Down

0 comments on commit 623a0ac

Please sign in to comment.