Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.13.0 - bouc'hal #2100

Merged
merged 2 commits into from
May 2, 2023
Merged

0.13.0 - bouc'hal #2100

merged 2 commits into from
May 2, 2023

Conversation

serge-sans-paille
Copy link
Owner

No description provided.

@serge-sans-paille
Copy link
Owner Author

cc @rgommers @jeanlaroche @paugier @hroncok @stefanv and @drew-parsons, can you beta test this release and report here? Thanks!

@drew-parsons
Copy link

Builds fine for debian, tests are passing.

https://buildd.debian.org/status/package.php?p=pythran&suite=experimental

@andyfaff
Copy link

andyfaff commented May 1, 2023

I (scipy maintainer) just tried to build scipy/main using pip install git+https://github.com/serge-sans-paille/pythran.git@feature/0.13.0 to install pythran.
The build completes and the test suite goes to completion.

@mattip
Copy link
Contributor

mattip commented May 1, 2023

Closes #2101

@jeanlaroche
Copy link
Contributor

jeanlaroche commented May 1, 2023 via email

@stefanv
Copy link
Contributor

stefanv commented May 1, 2023

All looking good for skimage as well. Thanks!

@serge-sans-paille
Copy link
Owner Author

Thank you all for the testing! As this release contains a compatibility patch for the latest gast release, I'll publish that today.

@serge-sans-paille serge-sans-paille merged commit 0118197 into master May 2, 2023
@h-vetinari
Copy link

Now that 0.13 has made it to scipy's CI, the gast problems are gone, but I'm seeing another failure that's not there with pythran 0.12.1 & gast 0.5.3, at least on windows & musl

[827/1624] Compiling C++ object scipy/stats/_stats_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__stats_pythran.cpp.o
FAILED: scipy/stats/_stats_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__stats_pythran.cpp.o 
c++ -Iscipy/stats/_stats_pythran.cpython-310-x86_64-linux-gnu.so.p -Iscipy/stats -I../scipy/stats -I../../../usr/lib/python3.10/site-packages/pythran -I../../../usr/lib/python3.10/site-packages/numpy/core/include -I/usr/include/python3.10 -fvisibility=hidden -fvisibility-inlines-hidden -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c++14 -O2 -g -fPIC -DENABLE_PYTHON_MODULE -D__PYTHRAN__=3 -DPYTHRAN_BLAS_NONE -Wno-cpp -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-unused-function -Wno-unused-variable -Wno-int-in-bool-context -MD -MQ scipy/stats/_stats_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__stats_pythran.cpp.o -MF scipy/stats/_stats_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__stats_pythran.cpp.o.d -o scipy/stats/_stats_pythran.cpython-310-x86_64-linux-gnu.so.p/meson-generated_..__stats_pythran.cpp.o -c scipy/stats/_stats_pythran.cpp
In file included from ../../../usr/lib/python3.10/site-packages/pythran/xsimd/xsimd.hpp:55,
                 from ../../../usr/lib/python3.10/site-packages/pythran/pythonic/include/numpy/ceil.hpp:8,
                 from scipy/stats/_stats_pythran.cpp:34:
../../../usr/lib/python3.10/site-packages/pythran/xsimd/arch/xsimd_scalar.hpp:465:25: error: exponent has no digits
  465 |         return std::exp(0x1.26bb1cp+1f * x);
      |                         ^~~~~~~~~~~
../../../usr/lib/python3.10/site-packages/pythran/xsimd/arch/xsimd_scalar.hpp:469:25: error: exponent has no digits
  469 |         return std::exp(0x1.26bb1bbb55516p+1 * x);
      |                         ^~~~~~~~~~~~~~~~~~
../../../usr/lib/python3.10/site-packages/pythran/xsimd/arch/xsimd_scalar.hpp: In function 'float xsimd::exp10(const float&)':
../../../usr/lib/python3.10/site-packages/pythran/xsimd/arch/xsimd_scalar.hpp:465:37: error: unable to find numeric literal operator 'operator""f'
  465 |         return std::exp(0x1.26bb1cp+1f * x);
      |                                     ^~
../../../usr/lib/python3.10/site-packages/pythran/xsimd/arch/xsimd_scalar.hpp:465:37: note: use '-fext-numeric-literals' to enable more built-in suffixes

Since this is failing in the xsimd-headers, this doesn't look like a scipy-problem.

@serge-sans-paille
Copy link
Owner Author

I think upgrading to xsimd 11 fixes the issue, can you confirm on #2103 ?

@h-vetinari
Copy link

h-vetinari commented May 2, 2023

I think upgrading to xsimd 11 fixes the issue, can you confirm on #2103 ?

Thanks for the quick response. I gave it a shot in scipy/scipy@3ef97d9, and unfortunately, it didn't help, see e.g. this CI run:

python -m pip install git+https://github.com/serge-sans-paille/pythran.git@feature/xsimd-11
Collecting git+https://github.com/serge-sans-paille/pythran.git@feature/xsimd-11
  Cloning https://github.com/serge-sans-paille/pythran.git (to revision feature/xsimd-11) to /tmp/pip-req-build-tskks_3k
  Running command git clone --filter=blob:none --quiet https://github.com/serge-sans-paille/pythran.git /tmp/pip-req-build-tskks_3k
  Running command git checkout -b feature/xsimd-11 --track origin/feature/xsimd-11
  branch 'feature/xsimd-11' set up to track 'origin/feature/xsimd-11'.
  Switched to a new branch 'feature/xsimd-11'
  Resolved https://github.com/serge-sans-paille/pythran.git to commit 0ce82efbdecb8847698ec4206d42b8a624e7d936
  [...]
Successfully installed beniget-0.4.1 gast-0.5.4 ply-3.11 pythran-0.13.0

which ends in the same error.

Taking a step back: as I noted on the gast issue, I don't think it's sustainable to keep layering changes on top of requiring bleeding-edge-but-still-being-released(-or-debugged) versions. This should be fixed for pythran 0.12 first, then we can take more time for testing 0.13 properly, rather than frantically trying to unblock various broken CI pipelines.

@serge-sans-paille
Copy link
Owner Author

@h-vetinari my bad, the patch in xsimd is not part of 11.0.0, it's actually xtensor-stack/xsimd@a1e0751 we need. If you confirm, I can backport this to pythran 13.0.0

@h-vetinari
Copy link

Based on the errors & the commit you linked, that looks very realistic. Though to test it, I'd need you to pick that patch into #2103 (or some other branch I can point to).

@h-vetinari
Copy link

Assuming that's the issue, a potential work-around (for anyone still affected after the gast stuff) would be to use C++17.

@serge-sans-paille
Copy link
Owner Author

@h-vetinari #2104 ?

@serge-sans-paille
Copy link
Owner Author

FYI I've just released 0.13.1 (see #2105) that backports a compatibility patch for xsimd.

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.

7 participants