-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error: Assertion failed: convert_res_bytewise_FP: Illegal combination of nonzero carry = 1
#19
Comments
Assertion failed: convert_res_bytewise_FP: Illegal combination of nonzero carry
I ran the same PRP on my M1/ASIMD build where it selected a much smaller FFT of 36K; are you able to use a smaller FFT than 96K?
Your run appears to have the 10000-iteration restart bug which I might separately flag as an issue. The output from Mlucas looked like:
|
Thanks for testing it. When passing the
The bug must be related to using a larger than optimal FFT length, which should work, but in the meantime maybe Mlucas should not try to use FFT lengths more than some multiple of the optimal, even if they are faster. |
I have a question about something which might be tangentially related this problem; do you know how the code throttles the variable which decides how to chain multiplications together? In the Mlucas standard output there are lines such as:
If things are not going well, one of Ernst’s tricks is to change the chain length; your output above soon changes to:
Usually |
In my example, I do not believe it should be using Anyway, to answer your question, the "chain length" is not something that can generally be specified on a per iteration basis. When Mlucas detects that the ROE is too high, it first tries to increase chain length to resolve the issue, before finally resorting to increasing the FFT length, which is of course much more costly in terms of performance. When it does increase chain length, it restarts the test from the last savefile, which means that it loses up to 10K iterations by default. Considering that the entire F13 test has less than 10K iterations, it would probably be easiest to force the test to use Lines 1351 to 1360 in 1839858
USE_SHORT_CY_CHAIN = USE_SHORT_CY_CHAIN_MAX; line above the fprintf() function.
|
Assertion failed: convert_res_bytewise_FP: Illegal combination of nonzero carry
Assertion failed: convert_res_bytewise_FP: Illegal combination of nonzero carry = 1
Latest Mlucas v21.0.1, AVX2 build, Assignment:
PRP=1,2,700001,-1
Output:
.stat
file:Edit: Ken also had this issue when attempting to PRP test a known prime:
The text was updated successfully, but these errors were encountered: