20150308, 11:07  #1 
"Antonio Key"
Sep 2011
UK
3^{2}·59 Posts 
GMPECM 7.0dev assertion failed!
Was working my way through factoring 85*2^676921 when this occurred: 
Code:
F:\ECM> F:\ECM>ecm v pm1 maxmem 12288 inp num2ecm.txt 500000 GMPECM 7.0dev [configured with GMP 6.0.0, enableasmredc] [P1] Input number is (85*2^676921)/(3*7*179*486271481*563592288920887*6600048163432517) (20337 digits) Using REDC Using lmax = 16384 with NTT which takes about 409MB of memory Using B1=500000, B2=658722972, polynomial x^1, x0=2500857976 P = 39585, l = 16384, s_1 = 8064, k = s_2 = 2, m_1 = 3 Probability of finding a factor of n digits: (Use go parameter to specify known factors in P1) 20 25 30 35 40 45 50 55 60 65 0.14 0.026 0.0034 0.00036 3e005 2.1e006 1.3e007 6.9e009 3.1e010 1.3e011 Step 1 took 213565ms Computing F from factored S_1Assertion failed! Program: F:\ECM\ecm.exe File: pm1fs2.c, Line 1857 Expression: (__builtin_constant_p (1UL) && (1UL) == 0 ? ((F[deg])>_mp_size < 0 ? 1 : (F[deg])>_mp_size > 0) : __gmpz_cmp_ui (F[deg],1UL)) == 0 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. F:\ECM> Code:
F:\ECM>ecm v pm1 maxmem 12288 inp num2ecm.txt 500000 GMPECM 7.0dev [configured with GMP 6.0.0, enableasmredc] [P1] Input number is (85*2^676921)/(3*7*179*486271481*563592288920887) (20353 digits) Using REDC Using lmax = 16384 with NTT which takes about 409MB of memory Using B1=500000, B2=658722972, polynomial x^1, x0=1998205761 P = 39585, l = 16384, s_1 = 8064, k = s_2 = 2, m_1 = 3 Probability of finding a factor of n digits: (Use go parameter to specify known factors in P1) 20 25 30 35 40 45 50 55 60 65 0.14 0.026 0.0034 0.00036 3e005 2.1e006 1.3e007 6.9e009 3.1e010 1.3e011 Step 1 took 140697ms Computing F from factored S_1 took 61449ms Computing h took 7426ms Computing DCTI of h took 780ms Multipoint evaluation 1 of 2: Computing g_i took 26427ms Computing g*h took 1607ms Computing gcd of coefficients and N took 15958ms Multipoint evaluation 2 of 2: Computing g_i took 26427ms Computing g*h took 1607ms Computing gcd of coefficients and N took 15943ms Step 2 took 176094ms I am running ECM on the number without a problem at the moment. Code:
GMPECM 7.0dev [configured with GMP 6.0.0, enableasmredc] [ECM] Using B1=50000, B2=15446350, polynomial x^2, 3 threads ____________________________________________________________________________ Curves Complete  Average seconds/curve  Runtime  ETA  36 of 220  Stg1 187.6s  Stg2 42.10s  0d 00:49:45  0d 03:56:40 
20150308, 11:10  #2 
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
2·3·29·67 Posts 

20150308, 19:50  #3 
2^{2}×11×97 Posts 
Along with reporting to the ECM development team, what build version were you using please? There seem to have been a few different versions over the last little while.

20150309, 07:24  #4  
"Antonio Key"
Sep 2011
UK
3^{2}·59 Posts 
Quote:
I went back and tried an earlier version with the following results:  Code:
f:\yafu\ecm>ecmx pm1 maxmem 12288 inp num2ecm.txt 110000 GMPECM 6.4.4 [configured with MPIR 2.6.0] [P1] Input number is (85*2^676921)/(3*7*179*486271481*563592288920887*6600048163432517) (20337 digits) Using B1=110000, B2=44251182, polynomial x^1, x0=452485962 Step 1 took 56628ms Step 2 took 30062ms f:\yafu\ecm>ecmy pm1 maxmem 12288 inp num2ecm.txt 110000 GMPECM 6.4.4 [configured with GMP 6.0.0, enableasmredc] [P1] Input number is (85*2^676921)/(3*7*179*486271481*563592288920887*6600048163432517) (20337 digits) Using B1=110000, B2=44251182, polynomial x^1, x0=3499163316 Step 1 took 47876ms Assertion failed! Program: f:\yafu\ecm\ecmy.exe File: pm1fs2.c, Line 1851 Expression: (__builtin_constant_p (1UL) && (1UL) == 0 ? ((F[deg])>_mp_size < 0 ? 1 : (F[deg])>_mp_size > 0) : __gmpz_cmp_ui (F[deg],1UL)) == 0 This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. 

20150309, 08:56  #5 
7·11·61 Posts 
You are probably correct. I recall in an earlier post that GMP works best within a Linux environment whereas MPIR works best within Windows.

20150309, 11:46  #6 
"Bo Chen"
Oct 2005
Wuhan,China
3·61 Posts 
I met some strange behavior when using B1=3e9 on R323 with maxmem 1000
Here is the log Code:
GMPECM 7.0dev [configured with MPIR 2.6.0,enableopenmp] [ECM] Input number is (10^3231)/(9*207...) (271 digits) [Fri Nov 28 17:52:02 2014] Computing batch product (of zu bits) of primes below B1=0 took 1073741824ms Using MODMULN [mulredc:0,sqrredc:1] Using B1=3000000000,B2=84996584711230,polynomial Dickson(30),sigma=2:2092172894349633986 dF=131072,k=438,d=1345890,d2=11,i0=2219 ... Step 1 took 209618ms Using 32 small primes for NTT Estimated memory usage: 735M ... Step 2 took 25928380ms ... 
20150309, 12:05  #7  
Bamboozled!
"๐บ๐๐ท๐ท๐ญ"
May 2003
Down not across
2·3·29·67 Posts 
Quote:
If stage 1 alone took 1000 seconds something indeed looks strange as the subsequent run took only 1/5 as long whereas 3e9/11e7 = 27.3 OTOH, 25928380 / 1000 / 27.3 = 950 which is in line with expectations. Likewise (25928380 + 209618) / 1000 / 27.3 = 957, also consistent. Paul 

20150309, 12:49  #8 
"Bo Chen"
Oct 2005
Wuhan,China
3·61 Posts 
I mean 1000 seconds when using B1=11e7 for stage 1.
I suppose the stage 1 takes longer time when B1 get larger,this is why I think there are something wrong. The binary is download from gilchrist's site. 
20150310, 04:57  #9 
Einyen
Dec 2003
Denmark
3×5×229 Posts 
Your number worked for me with SVN2655 both with GMP 6.0.0a and MPIR 2.7.0. You can try these if you want, they are compiled for a Sandy Bridge cpu:
ecm2655mpir.zip ecm2655gmp.zip 
20150310, 08:21  #10  
"Antonio Key"
Sep 2011
UK
3^{2}×59 Posts 
Quote:
Taking the hint, I recompiled and tuned for my Ivy Bridge using the latest version (SVN2657) + GMP 6.0.0a and that's working as well. 

Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Assertion failure in 6.4.2  bsquared  GMPECM  4  20130301 15:52 
Can an OS config be OK after RAM failed?  RickC  Hardware  8  20101028 03:31 
Assertion failed  Andi47  GMPECM  2  20090804 14:11 
GMPECM Assertion  yoyo  GMPECM  8  20090116 20:57 
connection failed  musos  Information & Answers  1  20081212 14:29 