Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
6dcf669
Temporarily modified Azure pipelines to use NumPy 2 nightly builds
kc611 Mar 5, 2024
8a92ce3
Fixed C-level changes; adding binary compatibility with NumPy 2
kc611 Mar 5, 2024
df7db90
Branched-off numpy deprecated definitions and replaced with newer def…
kc611 Mar 5, 2024
d8cc112
Added global compiler lock around DUFunc._compile_for_argtys since it…
kc611 Mar 5, 2024
c6b18fc
Fixed tests to be compatible with NumPy 2 changes
kc611 Mar 5, 2024
599db84
Fixed missing global np.bool issue
kc611 Mar 5, 2024
0ba75f4
Fixed round_test failures
kc611 Mar 5, 2024
b7ce802
Fixed tests with basic dtype issues
kc611 Mar 6, 2024
9246f32
Fixed np.arange's start being no longer a valid keyword arguments issue
kc611 Mar 6, 2024
85b7f5f
Fixed np.arange implementation template
kc611 Mar 6, 2024
8a41023
Fixed test windowing
kc611 Mar 6, 2024
dec5772
Restored azure pipeline to check change compatibilty with existing sy…
kc611 Mar 7, 2024
fa1f94c
Xfailed tests with numerical issues
kc611 Mar 7, 2024
efa4038
Fixed error in NumPy version-based branch
kc611 Mar 7, 2024
3678fa1
Fixed np.bool signature in tests to fit all versions on NumPy
kc611 Mar 8, 2024
38fd394
Fixed flake8 issues
kc611 Mar 8, 2024
8df12f2
Added fix for doctests; unsafe casting no longer allowed as default i…
kc611 Mar 8, 2024
d10323d
Added release notes
kc611 Mar 8, 2024
8e62bc9
Apply suggestions from code review
kc611 Mar 12, 2024
ea718ef
Application of patch to prevent recompilation of ufunc loops for same…
kc611 Mar 12, 2024
b2214a8
Skipped complex input test cases for np.arange testing instead of ski…
kc611 Mar 12, 2024
390af01
Readded negative number test cases for np.sum test cases
kc611 Mar 12, 2024
b56e85f
Added summary of user facing changes to release notes
kc611 Mar 12, 2024
73bfadf
Alaised np.row_stack to np.vstack explictly
kc611 Mar 12, 2024
4819679
Changed numpy scalar overflow logic to legacy for hashing tests
kc611 Mar 13, 2024
a5d1e74
Skipped only the problematic complex number cases for NumPy logspace …
kc611 Mar 13, 2024
5c025c1
Fixed accidental renaming of float_ to float32 in test_record_dtype
kc611 Mar 13, 2024
636be74
Added version gaurds to hashing tests
kc611 Mar 14, 2024
7ab228b
Temporarily modified azure pipeline to test against numpy 2 beta release
kc611 Mar 14, 2024
07369cd
Renamed all cuda float32 changes to float64
kc611 Mar 14, 2024
47db361
Fixed azure pipelines yaml
kc611 Mar 14, 2024
29cdbb9
Additional fixes to azure pipelines
kc611 Mar 14, 2024
2855a03
Commented out windows testing for azure
kc611 Mar 14, 2024
d4fe5ec
Addressed review comments
kc611 Mar 15, 2024
cffa09d
Fixed failing builds
kc611 Mar 18, 2024
0dc8a4b
Imported NumPy 2 compatibilty files
kc611 Mar 18, 2024
e671b14
Fixed failing integer casting test overflow in CUDA tests
kc611 Mar 18, 2024
88b0fbb
Fixed overflow based negative indexing logic
kc611 Mar 18, 2024
d3096dc
Fixed failing CUDA tests
kc611 Mar 19, 2024
af51874
Changed GPU-CI to build against NumPy 2
kc611 Mar 20, 2024
af6cc19
Removed scipy from gpu-ci builds
kc611 Mar 20, 2024
ba4d88a
Fix for failing GPU-CI tests
kc611 Mar 20, 2024
54d524a
Made CUDA fixes backwards compatible
kc611 Mar 22, 2024
56010e0
Addressed test failures on windows and osx-arm64 platform
kc611 Mar 22, 2024
a16c6b9
Fixed build issues with NumPy 1.x
kc611 Mar 25, 2024
02e7d0d
Reverted changes to Public CI
kc611 Mar 28, 2024
207b148
Corrected llvmlite versioning in Public CI
kc611 Mar 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added global compiler lock around DUFunc._compile_for_argtys since it…
… wrongly accessed C-level dead code in multithreaded envionment
  • Loading branch information
kc611 committed Mar 5, 2024
commit d8cc1125ccd9c8c3565f031cde770929bab3dfd3
3 changes: 2 additions & 1 deletion numba/np/ufunc/dufunc.py
Comment thread
kc611 marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from numba.np import numpy_support
from typing import Callable
from llvmlite import ir

from numba.core.compiler_lock import global_compiler_lock

def make_dufunc_kernel(_dufunc):
from numba.np import npyimpl
Expand Down Expand Up @@ -232,6 +232,7 @@ def _compile_for_args(self, *args, **kws):
argtys.append(argty)
return self._compile_for_argtys(tuple(argtys))

@global_compiler_lock
def _compile_for_argtys(self, argtys, return_type=None):
"""
Given a tuple of argument types (these should be the array
Expand Down