mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2009-04-07, 14:29   #12
joral
 
joral's Avatar
 
Mar 2008

1101112 Posts
Default

Well, I can get a build to go all the way through, but I'm running into some sort of segmentation fault in the asm code. At this point I'm wondering if I should cut down on the amount of the asm code I'm trying to include.
joral is offline   Reply With Quote
Old 2009-04-07, 22:11   #13
R. Gerbicz
 
R. Gerbicz's Avatar
 
"Robert Gerbicz"
Oct 2005
Hungary

22·7·53 Posts
Default

bsquared, I'm also interested in the Franke's code, can you send me?
R. Gerbicz is offline   Reply With Quote
Old 2009-04-08, 13:25   #14
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

23×3×5×72 Posts
Default

could someone post a link to the 64-bit linux binaries please?
henryzz is offline   Reply With Quote
Old 2009-04-08, 13:40   #15
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101101110012 Posts
Default

Quote:
Originally Posted by joral View Post
Well, I can get a build to go all the way through, but I'm running into some sort of segmentation fault in the asm code. At this point I'm wondering if I should cut down on the amount of the asm code I'm trying to include.
Hmm, maybe I didn't send you the working source, I thought I did. There were a couple simple edits that were made to stop the segfaulting, then the compiled binaries worked on opteron and core2 64 bit linux systems. Or are you trying it out on a different system?
bsquared is offline   Reply With Quote
Old 2009-04-08, 13:42   #16
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3×1,171 Posts
Default

Quote:
Originally Posted by henryzz View Post
could someone post a link to the 64-bit linux binaries please?

http://www.mersenneforum.org/showpos...6&postcount=23
bsquared is offline   Reply With Quote
Old 2009-04-08, 13:45   #17
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

1101101110012 Posts
Default

Quote:
Originally Posted by R. Gerbicz View Post
bsquared, I'm also interested in the Franke's code, can you send me?
Check your PM.

Until this code makes it into the SVN trunk, maybe someone could host it somewhere? This passing around hand to hand business is inefficient. Jeff?
bsquared is offline   Reply With Quote
Old 2009-04-08, 13:48   #18
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

23×3×5×72 Posts
Default

Quote:
Originally Posted by bsquared View Post
Check your PM.

Until this code makes it into the SVN trunk, maybe someone could host it somewhere? This passing around hand to hand business is inefficient. Jeff?
would it be possible to have it as a branch of the SVN(apologies if that isnt possible i dont have much knowledge in that area)?
henryzz is offline   Reply With Quote
Old 2009-04-08, 14:40   #19
joral
 
joral's Avatar
 
Mar 2008

5×11 Posts
Default

Quote:
Originally Posted by bsquared View Post
Hmm, maybe I didn't send you the working source, I thought I did. There were a couple simple edits that were made to stop the segfaulting, then the compiled binaries worked on opteron and core2 64 bit linux systems. Or are you trying it out on a different system?
It's a normal Athlon64x2, not opteron.

Do you recall what kind of edits they were?

Edited to add:

I can find some place to host it this evening, if no one else jumps up by then. Do we know if the rest of the asm code is faster than what is already in SVN, or has no one seen it worthwhile to find out?

Last fiddled with by joral on 2009-04-08 at 14:41
joral is offline   Reply With Quote
Old 2009-04-08, 14:54   #20
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3·1,171 Posts
Default

Quote:
Originally Posted by joral View Post
It's a normal Athlon64x2, not opteron.

Do you recall what kind of edits they were?

Edited to add:

I can find some place to host it this evening, if no one else jumps up by then. Do we know if the rest of the asm code is faster than what is already in SVN, or has no one seen it worthwhile to find out?
I edited it to work with my non-standard gmp build (changing <gmp.h> to "gmp.h" and copying over the header... not sure why I didn't just use -I.

Also added some header files that gcc complained about. Batalov helped a lot with this. Check to see if your gcc build is throwing up warnings involving alloca or memset.

I haven't had opprotunity to check, but I think it should work on athlon64 as well as opteron. The folder with all the asm code in it is named athlon64, after all :)

[edit]
If you do host it, would it be too much work to change things back to work with a normal gmp build (change back all the "gmp.h" to <gmp.h>)? That was stupid of me to do in the first place... sorry.

Last fiddled with by bsquared on 2009-04-08 at 14:57
bsquared is offline   Reply With Quote
Old 2009-04-08, 23:53   #21
joral
 
joral's Avatar
 
Mar 2008

5·11 Posts
Default

Quote:
Originally Posted by bsquared View Post
I edited it to work with my non-standard gmp build (changing <gmp.h> to "gmp.h" and copying over the header... not sure why I didn't just use -I.

Also added some header files that gcc complained about. Batalov helped a lot with this. Check to see if your gcc build is throwing up warnings involving alloca or memset.

I haven't had opprotunity to check, but I think it should work on athlon64 as well as opteron. The folder with all the asm code in it is named athlon64, after all :)

[edit]
If you do host it, would it be too much work to change things back to work with a normal gmp build (change back all the "gmp.h" to <gmp.h>)? That was stupid of me to do in the first place... sorry.
There was one memcpy warning, but that was in a different part of the code.

Where it looks like I'm having trouble now comes down to a problem with the lasched() function. The memory pointer to ri that it has keeps getting set to something quite weird.

Then, in the lasched1() asm function, the following asm

movl (%rdi),%r14d

is called with %rdi = 0xffffffffa96b7d80 (which is the value of the ri pointer.)

and the app segfaults.
joral is offline   Reply With Quote
Old 2009-04-11, 18:13   #22
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

36×13 Posts
Default new Opteron/Phenom 64-bit gnfs-lasieve binaries

Here are the new experimental Opteron/Phenom 64-bit assembly-optimized binaries for 12e..15e
http://www.boo.net/~jasonp/lasieveLinuxAsm64.zip
(hosted by Jason)

These binaries and are based on Greg/Paul/K/F source and include the patches from GGNFS (including resume option, and infinite loop prevention).

Need more tests from you guys. Sieve any project as usual and please report any cases of the message
SCHED_PATHOLOGY k=... excess=...

More details here:
http://mersenneforum.org/showthread....934#post168934
Batalov is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
3,697+ (GNFS 220.9) pinhodecarlos NFS@Home 0 2014-12-24 19:13
3,766+ (GNFS 215.5) pinhodecarlos NFS@Home 34 2014-04-01 21:27
Nonstandard lasieve binaries fivemack Factoring 8 2010-04-27 18:59
Bug in 64-bit lasieve Shaopu Lin Factoring 3 2009-11-18 18:42
c97 GNFS not possible? Andi47 Msieve 5 2009-01-26 18:19

All times are UTC. The time now is 20:32.


Fri Jul 16 20:32:15 UTC 2021 up 49 days, 18:19, 1 user, load averages: 1.64, 1.91, 2.04

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.