Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
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
1 change: 1 addition & 0 deletions dev/generate-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ def genspectests(specdict):
"""
)
f.write("import pytest\nimport kernels\n\n")
f.write("import pytest\nimport numpy as np\nimport kernels\n\n")
num = 1
if spec.tests == []:
f.write(
Expand Down
4 changes: 3 additions & 1 deletion src/awkward/_reducers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def _dtype_for_kernel(cls, dtype: DTypeLike) -> DTypeLike:
else:
return dtype

_use32 = (ak._util.win or ak._util.bits32) and not ak._util.numpy2
_use32 = ((ak._util.win or ak._util.bits32) and not ak._util.numpy2) or (
ak._util.numpy2 and np.intp is np.int32
)

@classmethod
def _promote_integer_rank(cls, given_dtype: DTypeLike) -> DTypeLike:
Expand Down