Skip to content

Commit

Permalink
Remove limit_numba_threads()
Browse files Browse the repository at this point in the history
It's not in parallel anymore, so we don't need it.

Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
  • Loading branch information
psavery committed Jan 9, 2024
1 parent a15f20c commit b764fae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hexrd/matrixutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

from scipy import sparse

from hexrd.utils.decorators import limit_numba_threads, numba_njit_if_available
from hexrd.utils.decorators import numba_njit_if_available
from hexrd import constants
from hexrd.constants import USE_NUMBA
if USE_NUMBA:
Expand Down Expand Up @@ -697,9 +697,6 @@ def findDuplicateVectors(vec, tol=vTol, equivPM=False):
return eqv2, uid2


# We found that too many threads causes allocator contention,
# so limit the number of threads here to just 8.
@limit_numba_threads(8)
@numba_njit_if_available(cache=True, nogil=True)
def _findduplicatevectors(vec, tol, equivPM):
"""
Expand Down

0 comments on commit b764fae

Please sign in to comment.