mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > GMP-ECM

Reply
 
Thread Tools
Old 2014-10-24, 09:46   #364
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

5·7·139 Posts
Default

Quote:
Originally Posted by kracker View Post
Sure. I hope my numbers are right though... I ran them both atleast twice.
Why do I get permission denied when executing it on Windows 8.1 64-bit?

Luigi
ET_ is offline   Reply With Quote
Old 2014-10-24, 13:51   #365
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22·863 Posts
Default

I updated my "automatic" GMP-ECM compiling zip-file to include GMP 6.0.0a and MPIR 2.7.0 alpha 12, and to include the newer processors in the list to choose from:
gmpecmcompile.zip

The zip-files should be extracted to the root of the c-drive: C:\. I will unpack 3 folders: msys, mingw64 and python27 and 1 bat file: c:\msys.bat. It takes about 550 Mb of space.

To start it use c:\msys.bat and it will start up msys and guide from there (note it will copy python27.dll to the windows\system32 folder, so Python 2.7 can run).

Just type "mpir-compile.bat" or "gmp-compile" to compile MPIR/GMP and choose the processor in the menu. Then type "gmpecm-compile.bat" to compile GMP-ECM and choose if you want GMPECM 6.4.4 or the latest svn.


My timing also shows GMP 6.0.0a is faster for higher B1/B2 and higher digits:

Code:
GMP-ECM 7.0-dev SVN 2540:   MPIR 2.7.0 alpha 12   vs   GMP 6.0.0a

B1=1000000 digits=100
MPIR	Step 1 took 1264ms	Step 2 took 1123ms
GMP	Step 1 took 1280ms	Step 2 took 998ms

B1=1000000 digits=200 
MPIR	Step 1 took 3416ms	Step 2 took 2106ms
GMP	Step 1 took 3120ms	Step 2 took 1825ms

B1=1000000 digits=500 
MPIR	Step 1 took 22745ms	Step 2 took 9687ms
GMP	Step 1 took 25740ms	Step 2 took 8893ms

B1=1000000 digits=1000 
MPIR	Step 1 took 90824ms	Step 2 took 24679ms
GMP	Step 1 took 82681ms	Step 2 took 23119ms

B1=3000000 digits=100
MPIR	Step 1 took 5741ms	Step 2 took 4836ms
GMP	Step 1 took 5648ms	Step 2 took 4383ms

B1=3000000 digits=200 
MPIR	Step 1 took 15164ms	Step 2 took 8892ms
GMP	Step 1 took 13744ms	Step 2 took 7972ms

B1=3000000 digits=500
MPIR	Step 1 took 86846ms	Step 2 took 27877ms
GMP	Step 1 took 76706ms	Step 2 took 26052ms

B1=3000000 digits=1000 
MPIR	Step 1 took 271660ms	Step 2 took 60466ms
GMP	Step 1 took 248198ms	Step 2 took 56129ms

B1=11000000 digits=100
MPIR	Step 1 took 20452ms	Step 2 took 15101ms
GMP	Step 1 took 20717ms	Step 2 took 14102ms

B1=11000000 digits=200
MPIR	Step 1 took 55474ms	Step 2 took 27752ms
GMP	Step 1 took 50388ms	Step 2 took 25288ms

B1=11000000 digits=500
MPIR	Step 1 took 317665ms	Step 2 took 90949ms
GMP	Step 1 took 281160ms	Step 2 took 85130ms

B1=11000000 digits=1000
MPIR	Step 1 took 996363ms	Step 2 took 234360ms
GMP	Step 1 took 912917ms	Step 2 took 213254ms
ATH is offline   Reply With Quote
Old 2014-10-24, 18:32   #366
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

37×59 Posts
Default

Hmm... interesting.
Also, how much does turning ecm affect performance?(ecm-params.h)
kracker is offline   Reply With Quote
Old 2014-10-24, 23:33   #367
kracker
 
kracker's Avatar
 
"Mr. Meeseeks"
Jan 2012
California, USA

1000100001112 Posts
Default

Is this normal...?
Attached Thumbnails
Click image for larger version

Name:	ecm.png
Views:	233
Size:	19.7 KB
ID:	11871  
kracker is offline   Reply With Quote
Old 2014-10-25, 07:13   #368
Karl M Johnson
 
Karl M Johnson's Avatar
 
Mar 2010

1100110112 Posts
Default

ASM reduction should speed things up as far as I remember.
Well, not anymore.
Karl M Johnson is offline   Reply With Quote
Old 2014-10-25, 13:04   #369
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Liverpool (GMT/BST)

10111111111012 Posts
Default

Quote:
Originally Posted by Karl M Johnson View Post
ASM reduction should speed things up as far as I remember.
Well, not anymore.
I think it is small numbers it speeds up.
henryzz is offline   Reply With Quote
Old 2014-11-04, 06:01   #370
Jayder
 
Jayder's Avatar
 
Dec 2012

32×31 Posts
Default

Quote:
Originally Posted by ATH View Post
I updated my "automatic" GMP-ECM compiling zip-file
Thank you again, ATH. What do I have to change in order to get it to compile without asm-redc enabled? I tried changing the three gmpecm-compile.bat files, but it didn't succeed. I would like to see if having it disabled is any faster when working on numbers > 4000.

Also, is it weird that I get worse performance with both GMP 6.0.0a and MPIR 2.7.0 alpha 12 over MPIR 2.5.1?

Last fiddled with by Jayder on 2014-11-04 at 06:14
Jayder is offline   Reply With Quote
Old 2014-11-04, 09:24   #371
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22·863 Posts
Default

Quote:
Originally Posted by Jayder View Post
Thank you again, ATH. What do I have to change in order to get it to compile without asm-redc enabled?
It is the file "C:\msys\1.0\home\bat\gmpecm-compile2.bat". I suggest you just search and replace the all words "enable" with "disable" to get them all (there are 28 "enable").

If you do not want to replace all, then you need to find the section for your cpu. If you press A in the cpu menu it is the ":OPT1" section, B is ":OPT2" and so on down to N for ":OPT14". Then in the correct section there are 2 configure lines, the first is just an echo line, so it is the second one at the bottom of the section. You need to remove "--enable-asm-redc" or change it to "--disable-asm-redc".

Let me know if it is better without asm-redc, then I might add an option for that as well.

Last fiddled with by ATH on 2014-11-04 at 09:26
ATH is offline   Reply With Quote
Old 2014-11-06, 08:32   #372
Jayder
 
Jayder's Avatar
 
Dec 2012

32·31 Posts
Default

Thank you. I got it to work after correcting one small error I'd made before. With it disabled, using MPIR 2.5.1, on a C4949 you shave less than 1% off of the time taken per curve. We're talking 10-25 seconds saved on a curve that takes 3200 seconds. It does add up, of course. I haven't tested any smaller numbers, though, so I'm not sure at what size it begins to benefit you.
Jayder is offline   Reply With Quote
Old 2014-11-06, 18:02   #373
amphoria
 
amphoria's Avatar
 
"Dave"
Sep 2005
UK

23·347 Posts
Default

Quote:
Originally Posted by ATH View Post
I updated my "automatic" GMP-ECM compiling zip-file to include GMP 6.0.0a and MPIR 2.7.0 alpha 12, and to include the newer processors in the list to choose from:
gmpecmcompile.zip
The zip file appears to be corrupt now. I have tried a number of different means of downloading and different unzip tools. Please could you re-post it.
amphoria is offline   Reply With Quote
Old 2014-11-06, 19:47   #374
Antonio
 
Antonio's Avatar
 
"Antonio Key"
Sep 2011
UK

32·59 Posts
Default

Quote:
Originally Posted by amphoria View Post
The zip file appears to be corrupt now. I have tried a number of different means of downloading and different unzip tools. Please could you re-post it.
I used 7zip to extract the files - worked fine. However, Windows 7 thinks it is a corrupt compressed folder.
Antonio is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Links masser Sierpinski/Riesel Base 5 25 2011-11-26 09:21
Links to Precompiled Msieve versions wblipp Msieve 0 2011-07-17 20:59
Links davieddy Information & Answers 9 2010-10-08 14:27
Links question ET_ PrimeNet 0 2008-01-26 09:35
Links. Xyzzy Forum Feedback 2 2007-03-18 02:17

All times are UTC. The time now is 04:27.


Fri Jul 7 04:27:51 UTC 2023 up 323 days, 1:56, 0 users, load averages: 1.40, 1.70, 1.61

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔