mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2018-06-21, 23:58   #34
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

22268 Posts
Default

Thanks again !

r375 now factors the problematic C77 without issues:

Win10
Core2Duo (SSE2)
GMP 6.1.2
GMP-ECM 7.0.4
Msieve SVN1019
Msys2 build (make -f Makefile.mingw x86_64 NFS=1)

Code:
PS C:\YAFU-r375-wip-win64-core2> .\yafu-r375-wip--win64-core2.exe
 
>> factor(48202395317126317959846339946962077929419264021859989059557078165565552082529)

fac: factoring 48202395317126317959846339946962077929419264021859989059557078165565552082529
fac: using pretesting plan: normal
fac: no tune info: using qs/gnfs crossover of 95 digits
div: primes less than 10000
fmt: 1000000 iterations
rho: x^2 + 3, starting 1000 iterations on C77
rho: x^2 + 2, starting 1000 iterations on C77
rho: x^2 + 1, starting 1000 iterations on C77
pm1: starting B1 = 150K, B2 = gmp-ecm default on C77
ecm: 30/30 curves on C52, B1=2K, B2=gmp-ecm default
ecm: 11/14 curves on C52, B1=11K, B2=gmp-ecm default
fac: factoring 10025238874798413268464641
fac: using pretesting plan: normal
fac: no tune info: using qs/gnfs crossover of 95 digits
div: primes less than 10000
fmt: 1000000 iterations
rho: x^2 + 3, starting 1000 iterations on C26
rho: x^2 + 2, starting 1000 iterations on C26
rho: x^2 + 1, starting 1000 iterations on C26
Total factoring time = 0.3281 seconds
Total factoring time = 1.5469 seconds


***factors found***

P21 = 140379251771132019991
P32 = 34250819522896991734742623749959
P13 = 2648315536309
P13 = 3785515259549
1
  >> exit
The resulting executable also seems to work on my Win7 i7-2500k and also factors the problematic C77 without problems (tested in cmd.exe and Powershell)
VictordeHolland is offline   Reply With Quote
Old 2018-06-23, 06:41   #35
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

2×3×1,471 Posts
Default

Does the last release still supports 32 bits? And if so, where can I get a win32 exe? Thanks a billion in advance.
edit: no zipping of .dat of relations, if possible

Last fiddled with by LaurV on 2018-06-23 at 06:42
LaurV is offline   Reply With Quote
Old 2018-06-23, 13:39   #36
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

2×587 Posts
Default

Quote:
Originally Posted by LaurV View Post
Does the last release still supports 32 bits? And if so, where can I get a win32 exe?
Do you still have machines that are not 64bit capable? Everything from the first Core2Duo series (released 2006-2007) should be 64bit capable?
VictordeHolland is offline   Reply With Quote
Old 2018-06-25, 14:08   #37
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
Jun 2011
Thailand

882610 Posts
Default

These are not old machines, they are a bunch of i5 and i7 machines where I can't update the OS. It is WinXP32 and I mentioned them in the past.
LaurV is offline   Reply With Quote
Old 2018-06-25, 14:42   #38
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1100110111102 Posts
Default

Quote:
Originally Posted by LaurV View Post
These are not old machines, they are a bunch of i5 and i7 machines where I can't update the OS. It is WinXP32 and I mentioned them in the past.
I just tried to build the 32-bit version with Visual Studio and got several errors. I admit that it is somewhat difficult for me to summon the energy to deal with these errors. For better or worse, I typically don't write portable code first and then optimize... I just start with the new and exciting stuff. So going back and re-writing new things so they will work with old and dead technology is painful.

This is just me complaining... try to ignore

The list of errors is small-ish so maybe it won't be too bad.
bsquared is offline   Reply With Quote
Old 2018-06-25, 16:40   #39
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

24C16 Posts
Default

Quote:
Originally Posted by LaurV View Post
These are not old machines, they are a bunch of i5 and i7 machines where I can't update the OS. It is WinXP32 and I mentioned them in the past.
You can attach those machines with BOINC to https://yafu.myfirewall.org/yafu/ or https://www.rechenkraft.net/yoyo ECM project. There are 32 bit Windows applications available. ;-)
yoyo is offline   Reply With Quote
Old 2018-06-27, 08:43   #40
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

2·587 Posts
Default

Quote:
Originally Posted by LaurV View Post
These are not old machines, they are a bunch of i5 and i7 machines where I can't update the OS. It is WinXP32 and I mentioned them in the past.
Quote:
Originally Posted by yoyo View Post
You can attach those machines with BOINC to https://yafu.myfirewall.org/yafu/ or https://www.rechenkraft.net/yoyo ECM project. There are 32 bit Windows applications available. ;-)
I would advice against connecting WinXP machines to the internet.
VictordeHolland is offline   Reply With Quote
Old 2018-06-27, 12:15   #41
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

2·3·5·191 Posts
Default

Quote:
Originally Posted by VictordeHolland View Post
Maybe, I haven't tried it yet.

Some things I found in a couple of minutes:
- the Linux subsystem (I installed Ubuntu from the store) gets installed very deep in:
C:\users\<username>\AppData\Local\Packages\CanonicalGroup........\
and I have no idea where it places the filesystem folders (bin etc home lib usr var etc )?
and you still would have to install mingw (as the gcc compiler for Windows executables) I think.

- You can't copy paste text from Windows into the Ubuntu-linuxsubsystem (which you can with the MSYS2 terminal)

- If you install the mingw toolchain with the package manager (pacman) in MSYS2 you can start a new terminal with mingw64.exe it will automatically select the mingw gcc/g++ compiler as default (you can check it with "gcc -v" and "g++ -v"). It is also a quite new version (7.3.0).

With Ubuntu-Linux-Subsystem after
apt-get install build-essential
apt-get install mingw-w64
you get:

gcc -v
Target: x86_64-linux-gnu
gcc version 5.4.0 20160609

and (I had to lookup the full name of the mingw gcc before I could check!)

x86_64-w64-mingw32-gcc -v
Target: x86_64-w64-mingw32
gcc version 5.3.1 20160211 (GCC)
It doesn't really matter where the subsystem folders are as it mounts the pc's drives.

I am fairly certain I can copy and paste in and out of the Ubuntu subsystem. I will check tonight.

Installing mingw can be done by a script rather than manual fiddling.

To temporarily switch the default gcc to mingw it should be possible to use update-alternatives.
henryzz is online now   Reply With Quote
Old 2018-06-30, 13:02   #42
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

2·587 Posts
Default

GMP-6.1.2
GMP-ECM 7.0.4
Both compile succesfully on 32bit, but with compiling Msieve it complains about the lenght of ints and floats and I get a bunch of errors. I didn't put any more time in it.
VictordeHolland is offline   Reply With Quote
Old 2018-06-30, 15:56   #43
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2×33×61 Posts
Default

Quote:
Originally Posted by VictordeHolland View Post
GMP-6.1.2
GMP-ECM 7.0.4
Both compile succesfully on 32bit, but with compiling Msieve it complains about the lenght of ints and floats and I get a bunch of errors. I didn't put any more time in it.
Historically I have always used visual studio to build the 32-bit executable. (Maybe once have I ever tried to get a 32-bit linux version - I'm sure it wouldn't work now.) And despite my little rant it actually wasn't too bad to get it to work. I'll check in the changes and post the result later when I get more time.

Last fiddled with by bsquared on 2018-06-30 at 15:56
bsquared is offline   Reply With Quote
Old 2018-06-30, 17:02   #44
VictordeHolland
 
VictordeHolland's Avatar
 
"Victor de Hollander"
Aug 2011
the Netherlands

2·587 Posts
Default

Quote:
Originally Posted by bsquared View Post
Historically I have always used visual studio to build the 32-bit executable. (Maybe once have I ever tried to get a 32-bit linux version - I'm sure it wouldn't work now.) And despite my little rant it actually wasn't too bad to get it to work. I'll check in the changes and post the result later when I get more time.
You're too good to LaurV
VictordeHolland is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Guide to compiling YAFU Mr. Odd YAFU 4 2017-04-24 15:40
Compiling YAFU under MinGW wombatman YAFU 10 2016-01-21 19:48
Need help compiling YAFU from SVN. Stargate38 YAFU 14 2016-01-20 21:46
compiling svn 427 for Windows 64 bit. skan NFSNET Discussion 7 2012-04-18 10:30
Compiling ECM 5.0.3 for windows BotXXX Factoring 25 2005-09-13 12:24

All times are UTC. The time now is 07:09.

Tue Oct 20 07:09:53 UTC 2020 up 40 days, 4:20, 0 users, load averages: 1.75, 1.68, 1.61

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.