Skip to content

At least 2 threads for numexpr ... - #2949

Merged
kif merged 5 commits into
silx-kit:mainfrom
kif:pytest
Sep 21, 2026
Merged

kif merged 5 commits into
silx-kit:mainfrom
kif:pytest

Conversation

@kif

@kif kif commented Sep 19, 2026

Copy link
Copy Markdown
Member

related to #2948: prevent crash when NUM_THREADS=1

@kif
kif requested a review from t20100 September 20, 2026 09:58
@kif

kif commented Sep 20, 2026 •

Copy link
Copy Markdown
Member Author

@t2010 you have been waiting for it.
Related to pydata/numexpr#569 and pydata/numexpr#570

@t20100 t20100 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So tests are fixed, but parallel execution of pyfai can still seg fault and would require the fix in numexpr, right?

Comment thread ci/appveyor.yml
Comment on lines +42 to +51
#- PYTHON_DIR: "C:\\Python\\3.11"
# PYTHON_ARCH: "64"

# Python 3.12
- PYTHON_DIR: "C:\\Python\\3.12"
PYTHON_ARCH: "64"
#- PYTHON_DIR: "C:\\Python\\3.12"
# PYTHON_ARCH: "64"

# Python 3.13
- PYTHON_DIR: "C:\\Python\\3.13"
PYTHON_ARCH: "64"
#- PYTHON_DIR: "C:\\Python\\3.13"
# PYTHON_ARCH: "64"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why commenting those? IMO best to remove

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it will be re-shuffled in a week with the arrival of 3.15: I'll keep 3.11 and 3.15 only.

Comment thread ci/appveyor.yml

# Build
- "python run_tests.py -m"
# - "python run_pytest.py"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# - "python run_pytest.py"

@kif

kif commented Sep 21, 2026

Copy link
Copy Markdown
Member Author

The bug in numexpr still exist, a AI agent proposed a solution but is is apparently not compatible with 3.13t/3.14t.
There is a workaround in place in this PR. Should only affect ARM architecture since it has no hyperthreading.

@kif
kif merged commit b65bc14 into silx-kit:main Sep 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants