mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2013-03-07, 05:25   #34
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101001000012 Posts
Default

Mark, thanks for the build fix.

1.34.5 is now ready, which should now have a stable ecm in the x64 windows executable.

I also made a quick change that will help factor() work better with snfs. If you put the full form into factor(), i.e., factor(2^625-1), then even if ecm or whatever finds factors before nfs starts, the cofactor will now still be recognizable as a snfs job. @henryzz: that might help do what you were asking for a bit ago.

Unfortunately I put this patch together before Mark's post, so it does not include the Mac build fix.
bsquared is offline   Reply With Quote
Old 2013-03-07, 10:15   #35
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

23×599 Posts
Default

Quote:
Originally Posted by bsquared View Post
Mark, thanks for the build fix.

1.34.5 is now ready, which should now have a stable ecm in the x64 windows executable.

I also made a quick change that will help factor() work better with snfs. If you put the full form into factor(), i.e., factor(2^625-1), then even if ecm or whatever finds factors before nfs starts, the cofactor will now still be recognizable as a snfs job. @henryzz: that might help do what you were asking for a bit ago.

Unfortunately I put this patch together before Mark's post, so it does not include the Mac build fix.
Code:
yafu-Win32.exe - System error.
Can't start the program because VCOMP100.DLL is not present.
Luigi
ET_ is offline   Reply With Quote
Old 2013-03-07, 13:39   #36
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

20B16 Posts
Default

Quote:
Originally Posted by ET_ View Post
Code:
yafu-Win32.exe - System error.
Can't start the program because VCOMP100.DLL is not present.
Luigi
This is the Microsoft OpenMP library, which is distributed in the Microsoft C++ 2010 redistributable package:

http://www.microsoft.com/en-us/downl...s.aspx?id=5555

It seems that this is missing on the machine in question.

This issue may have turned up because Ben is using my latest Visual Studio build files because I have just enabled OpenMP support in the GMP-ECM build.

I think Ben is using VS 2010 but if he is using Microsoft C++ 2012, the appropriate redistributable packages are here:

http://www.microsoft.com/en-gb/downl....aspx?id=30679
Brian Gladman is offline   Reply With Quote
Old 2013-03-07, 13:41   #37
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101001000012 Posts
Default

Quote:
Originally Posted by ET_ View Post
Code:
yafu-Win32.exe - System error.
Can't start the program because VCOMP100.DLL is not present.
Luigi
Hmm. dll-files.com says that this is a C/OpenMP runtime library. Sorry, I didn't realize it would need anything like this. I suppose it is necessary to suppot the gmp-ecm 7.0-dev library that is now in the Win32 version of yafu-1.34. I think if you download the .dll and put it in you system folder it will work.
bsquared is offline   Reply With Quote
Old 2013-03-07, 13:43   #38
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3,361 Posts
Default

Quote:
Originally Posted by Brian Gladman View Post
This is the Microsoft OpenMP library, which is distributed in the Microsoft C++ 2010 redistributable package:

http://www.microsoft.com/en-us/downl...s.aspx?id=5555

It seems that this is missing on the machine in question.

This issue may have turned up because Ben is using my latest Visual Studio build files because I have just enabled OpenMP support in the GMP-ECM build.

I think Ben is using VS 2010 but if he is using Microsoft C++ 2012, the appropriate redistributable packages are here:

http://www.microsoft.com/en-gb/downl....aspx?id=30679
Thanks Brian.

Yes, I'm using visual studio 2010, so if needed, use the first of Brian's links.
bsquared is offline   Reply With Quote
Old 2013-03-07, 14:15   #39
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

20B16 Posts
Default

Quote:
Originally Posted by bsquared View Post
Thanks Brian.

Yes, I'm using visual studio 2010, so if needed, use the first of Brian's links.
It is also worth noting that these redistributable packages come in x86 (win32) and x64 (win64) versions. So it is important to ensure that the right versions are installed (both if both versions are being used).
Brian Gladman is offline   Reply With Quote
Old 2013-03-07, 15:45   #40
ET_
Banned
 
ET_'s Avatar
 
"Luigi"
Aug 2002
Team Italia

23·599 Posts
Default

OK, it worked just fine, thank you!!

I read that the original gmp-ecm 7.0 was configured to avoid the default Open-MP linkage, so it didn't occur to me that it could have been enabled on Yafu.

Luigi
ET_ is offline   Reply With Quote
Old 2013-03-07, 18:57   #41
yoyo
 
yoyo's Avatar
 
Oct 2006
Berlin, Germany

25116 Posts
Default

Quote:
Originally Posted by bsquared View Post
Hmm. dll-files.com says that this is a C/OpenMP runtime library. Sorry, I didn't realize it would need anything like this. I suppose it is necessary to suppot the gmp-ecm 7.0-dev library that is now in the Win32 version of yafu-1.34. I think if you download the .dll and put it in you system folder it will work.
Can the exe be linked static to avoid, that every user has to download the dll?
yoyo
yoyo is offline   Reply With Quote
Old 2013-03-07, 22:16   #42
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

52310 Posts
Default

Quote:
Originally Posted by yoyo View Post
Can the exe be linked static to avoid, that every user has to download the dll?
yoyo
Unfortunately, for reasons that I am unclear about, Microsoft don't offer a static library for OpenMP. It seems that Intel do offer this but they then recommend that it is not used! There are also reports that its use might be deprecated.

So it seems that the only way of avoiding the need for these DLLs is to turn off OpenMP in GMP-ECM and YAFU.
Brian Gladman is offline   Reply With Quote
Old 2013-03-08, 00:49   #43
WraithX
 
WraithX's Avatar
 
Mar 2006

7308 Posts
Default

Quote:
Originally Posted by Brian Gladman View Post
Unfortunately, for reasons that I am unclear about, Microsoft don't offer a static library for OpenMP. It seems that Intel do offer this but they then recommend that it is not used! There are also reports that its use might be deprecated.

So it seems that the only way of avoiding the need for these DLLs is to turn off OpenMP in GMP-ECM and YAFU.
Ben, can you disable OpenMP in your builds of GMP-ECM? Perhaps with --disable-openmp? I personally wouldn't want to install any OpenMP redistributables to use yafu. However, this is just my personal opinion/preference. I can probably find another way to use yafu if you do decide to stick with the default build options.
WraithX is offline   Reply With Quote
Old 2013-03-08, 05:19   #44
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

3·1,181 Posts
Default

OK, what did I do wrong this time?
Code:
$ ./yafu

03/08/13 00:19:09 v1.34.5 @ Comp, System/Build Info: 
Using GMP-ECM, Powered by GMP
detected AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
detected L1 = 65536 bytes, L2 = 1048576 bytes, CL = 64 bytes
measured cpu frequency ~= 1306.392660
using 20 random witnesses for Rabin-Miller PRP checks
...
cached 78498 primes. pmax = 999983

>> nfs(17285154910805941577069464828335617544658066950627644021728302169526833018711670895092479561808160256160945139573800969912234390238908363042669550995167201537635764747005337)

nfs: commencing nfs on c173: 17285154910805941577069464828335617544658066950627644021728302169526833018711670895092479561808160256160945139573800969912234390238908363042669550995167201537635764747005337
nfs: searching for brent special forms...
nfs: searching for homogeneous cunningham special forms...
nfs: searching for XYYXF special forms...
nfs: couldn't find special form
Segmentation fault
$
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yafu bsquared YAFU 1276 2019-01-12 04:46
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
Yafu bug. storflyt32 YAFU 2 2015-06-29 05:19
yafu-1.33 bsquared YAFU 12 2012-11-08 04:12
yafu-1.32.1 bsquared YAFU 21 2012-09-04 19:44

All times are UTC. The time now is 12:57.

Fri Jan 22 12:57:42 UTC 2021 up 50 days, 9:09, 0 users, load averages: 1.72, 1.87, 1.78

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