mersenneforum.org  

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

Reply
 
Thread Tools
Old 2015-12-26, 19:51   #397
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

65748 Posts
Default

I got a patch for GMP 6.1.0 on Broadwell:

Broadwell; GMP-ECM7 SVN 2749 with GMP 6.1.0: gmpecm7-svn2749-broadwell.zip (compiled on Core i5 5200U laptop)
ATH is offline   Reply With Quote
Old 2016-01-01, 20:21   #398
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22×863 Posts
Default

If anyone is still using Core2 for GMP-ECM:

Core2; GMP-ECM7 SVN 2749 with GMP 6.1.0: gmpecm7-svn2749-core2.zip (compiled on a Core2Quad (Yorksfield) Q9450)
ATH is offline   Reply With Quote
Old 2016-01-20, 16:30   #399
wblipp
 
wblipp's Avatar
 
"William"
May 2003
Near Grandkid

94716 Posts
Default

How do I figure out which version to use on a machine? For example, I have occasional access to a machine running Win 7. Control Panel>System says the processor is a Xeon E3-1246 v3
wblipp is offline   Reply With Quote
Old 2016-01-20, 16:47   #400
pinhodecarlos
 
pinhodecarlos's Avatar
 
"Carlos Pinho"
Oct 2011
Milton Keynes, UK

2·5·11·47 Posts
Default

Quote:
Originally Posted by wblipp View Post
How do I figure out which version to use on a machine? For example, I have occasional access to a machine running Win 7. Control Panel>System says the processor is a Xeon E3-1246 v3
William, use the Haswell one.
pinhodecarlos is offline   Reply With Quote
Old 2016-01-20, 18:04   #401
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22×863 Posts
Default

Carlos is correct, if you look at this list and search for 1246 you will find it under the "Haswell based Xeons"-section:
https://en.wikipedia.org/wiki/List_o...icroprocessors
ATH is offline   Reply With Quote
Old 2016-01-22, 06:12   #402
Belteshazzar
 
Feb 2011

3×11 Posts
Default

ATH, any chance you'd be willing to compile one optimized for AMD?

Piledriver (i.e. march/mtune = bdver2) would be the most appropriate target. Though Steamroller and Excavator are newer, Excavator is laptops only, Steamroller (desktop Kaveri APUs) is not much different from Piledriver (instruction wise just adds FSGSBASE), and the main FX line (incl. inexpensive 8-core chips) is still stuck on Piledriver.

I'm a little confused as to why you're using each kind of processor to compile its own binary- is that for testing purposes or is there some reason you're tied to -march=native?
Belteshazzar is offline   Reply With Quote
Old 2016-01-23, 21:52   #403
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22×863 Posts
Default

I always assumed it was better to compile on the correct hardware instead of cross compiling, and in this case with GMP and GMPECM it seems I was right.

GMP does a lot of checks of the different types of variables which are available on your computer and compiler, so what won't work for cross compiling, and GMPECM has 2 tuning steps for tuning the parameters.

I tried GMP with --build=haswell-w64-mingw32 and --host=piledriver-w64-mingw32 but that failed. It also failed with just --build=piledriver-w64-mingw32. Then I tried using my GMP version and just compiling GMPECM, but that failed as well.

I did consider making a new zip file with MSYS2 and instructions on how to compile both GMP and GMPECM, and if you do not mind, you can try and "beta" test it. I'll send you a pm.

Last fiddled with by ATH on 2016-01-23 at 21:52
ATH is offline   Reply With Quote
Old 2016-02-27, 20:07   #404
WraithX
 
WraithX's Avatar
 
Mar 2006

2·277 Posts
Default

Quote:
Originally Posted by bsquared View Post
Quote:
Originally Posted by jasonp View Post
Unfortunately the GMP-ECM library is not technically multithread-safe, I think it uses a sieve of eratosthenes that has some global state. You could actually do the community a great service if you could fix that and Msieve does have a GMP-ECM driver. Alternately, YAFU can call multiple copies of the GMP-ECM demo binary.
Yep :) The unsafeness of the library is why yafu only allows multithreading with the external binary.
As an FYI to those who may be interested, recent svn changes to GMP-ECM now include a thread safe prime sieve. You can see this mentioned in the NEWS file in svn:
Quote:
Changes between GMP-ECM 6.4.4 and GMP-ECM 7.0:
* GMP-ECM is now thread-safe. In particular the "ecmfactor" binary can be
called with say -t 17 to use 17 threads.
WraithX is offline   Reply With Quote
Old 2016-02-27, 23:24   #405
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

22·863 Posts
Default

Haswell: GMP-ECM7 SVN 2840 with GMP 6.1.0: gmpecm7-svn2840-haswell.zip

Sandy Bridge: GMPECM7 SVN 2840 with GMP 6.1.0: gmpecm7-svn2840-sandybridge.zip




I still had to comment out line 191 and 203 in "bench_mulredc.c", same error as described here in post #50+#52: http://www.mersenneforum.org/showthread.php?t=16444

Also had to comment out line #880+#881 in main.c:
Code:
/*      if (verbose >= 2)
        printf ("Tuned for %s\n", ECM_TUNE_CASE); */
as ECM_TUNE_CASE was not defined. I think is not meant to use that variable in those line since there is a check if it is defined in line #166-#170:
Code:
#ifdef ECM_TUNE_CASE
  printf ("Tuning parameters from %s\n", ECM_TUNE_CASE);
#else
  printf ("ECM_TUNE_CASE not defined.\n");
#endif

Last fiddled with by ATH on 2016-02-27 at 23:24
ATH is offline   Reply With Quote
Old 2016-02-29, 02:06   #406
WraithX
 
WraithX's Avatar
 
Mar 2006

22A16 Posts
Default

Quote:
Originally Posted by ATH View Post
I still had to comment out line 191 and 203 in "bench_mulredc.c", same error as described here in post #50+#52: http://www.mersenneforum.org/showthread.php?t=16444

Also had to comment out line #880+#881 in main.c:
Thanks for mentioning this again. This is now fixed in svn 2841.
WraithX is offline   Reply With Quote
Old 2016-02-29, 20:22   #407
Gordon
 
Gordon's Avatar
 
Nov 2008

7758 Posts
Default

Quote:
Originally Posted by ATH View Post
Haswell: GMP-ECM7 SVN 2840 with GMP 6.1.0: gmpecm7-svn2840-haswell.zip
ecm doesn't have the -t parameter and when I run ecmfactor -h it spits out this error

The program can't start because libwinpthread-1.dll is missing....
Gordon 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:49 UTC 2023 up 323 days, 1:56, 0 users, load averages: 1.35, 1.70, 1.60

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.

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