-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
Upgrade to pari 2.17.1, cypari 2.2.1, cysignals 1.12.3 #38749
Conversation
Needs work because this is not compatible with 2.15. So either it needs to be merged with the pari upgrade or be made to work with older pari too (no idea how). Running tests now. |
Many test failures. |
a6acbfb
to
f619b6f
Compare
If the changes here eventually allow us to use a system Pari 2.17, then we should undo the change in #38772. |
With this MR and the cypari fixes sagemath/cypari2#165 and sagemath/cypari2#166 all tests are passing with pari 2.17. The changes are not compatible with 2.15 though, making them compatible requires more work. Also, some pari opeations (such as the number field prime ideals above a given prime) give random output with 2.17, which makes it harder to test. To solve both issues (and make tests more future proof), we should gradually move away from testing the exact output to just testing that the output is correct. |
257246c
to
b3c57e1
Compare
What is missing here? This is IMO critical (if not a blocker) for 10.6. I don't think the bug found above is a reason to not upgrade pari. It's not even clear to me that this is a new bug. Note that |
Yes, please let get this in. I've wasted enough of my time already rebasing this multiple times. |
Here is a minimal reproducer of the underlying issue without using Simon's scripts:
Note that the fundamental unit is missing in the first |
for me |
|
Looks like the difference between the cypari and gp behavior is due to the default precision. Can now reproduce in gp:
Will report upstream. From quick testing, this seems to happen between 1-2% of the times for different seeds. |
@antonio-rojas Great! |
Could someone please also have a look at #39526 so that both PRs are merged at the same time to not have a red conda test on macos (see #38749 (comment)). Thanks! |
OK, the issue should be fixed now. The point is that pari's |
How is that related to this PR? |
sagemathgh-38749: Upgrade to pari 2.17.1, cypari 2.2.1, cysignals 1.12.3 `NEXT_PRIME_VIADIFF` is removed in 2.17, port `pari_prime_range` to `pari_PRIMES` instead Needs sagemath/cypari2#165 applied to cypari URL: sagemath#38749 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Dima Pasechnik, Gonzalo Tornaría
it's about getting the CI on macOS green. |
sagemathgh-38749: Upgrade to pari 2.17.1, cypari 2.2.1, cysignals 1.12.3 `NEXT_PRIME_VIADIFF` is removed in 2.17, port `pari_prime_range` to `pari_PRIMES` instead Needs sagemath/cypari2#165 applied to cypari URL: sagemath#38749 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Dima Pasechnik, Gonzalo Tornaría
Maybe the title should be edited to add "numpy 2.2" or something similar? the conda lock files are listing numpy 2. Also what's the plan for numpy 1.26 support now? Are they still officially supported? (if they're not supported how are they tested? |
Numpy 1.26 is EOL on 17 Sep 2025 so let's not overdo it please. |
sagemathgh-38749: Upgrade to pari 2.17.1, cypari 2.2.1, cysignals 1.12.3 `NEXT_PRIME_VIADIFF` is removed in 2.17, port `pari_prime_range` to `pari_PRIMES` instead Needs sagemath/cypari2#165 applied to cypari URL: sagemath#38749 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Dima Pasechnik, Gonzalo Tornaría
The PR to update numpy+scipy #39655 |
Somehow the build is falling on my machine. Investigation needed. |
NEXT_PRIME_VIADIFF
is removed in 2.17, portpari_prime_range
topari_PRIMES
insteadNeeds sagemath/cypari2#165 applied to cypari