mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Factoring (https://www.mersenneforum.org/forumdisplay.php?f=19)
-   -   64-bit gnfs-lasieve* (https://www.mersenneforum.org/showthread.php?t=11660)

mklasson 2009-03-30 12:41

64-bit gnfs-lasieve*
 
The source I got from [url]http://ggnfs.svn.sourceforge.net/viewvc/ggnfs/[/url] doesn't appear to contain much 64-bit asm (only a little snippet inline). Ben seemed to say the other day though that there's a version that does. Does anyone know where I might find it? It's supposed to be linux only, but I'm hoping you all have just been lazy and/or linux-using and getting it to compile under windows won't be terribly difficult... :smile:

I'm going away on vacation for a week in a couple of days and it sure would be nice to cram two weeks of computation in there.

jasonp 2009-03-30 12:48

There is another version of the Franke/Kleinjung siever that includes a lot of 64-bit optimizations; several here have the source for it. The changes have not been folded into GGNFS and the code very likely doesn't work in Windows. Nobody has had the time or the willpower to fix that.

mklasson 2009-03-30 13:00

[QUOTE=jasonp;167254]There is another version of the Franke/Kleinjung siever that includes a lot of 64-bit optimizations; several here have the source for it. The changes have not been folded into GGNFS and the code very likely doesn't work in Windows. Nobody has had the time or the willpower to fix that.[/QUOTE]

I'm reasonably well endowed with both. Could one of these people share the source so I can determine if sufficiently so? If it's [b]too[/b] much work I probably won't be, but running at half speed now is a fairly strong motivator.

bsquared 2009-03-30 13:10

[quote=mklasson;167258]I'm reasonably well endowed with both. Could one of these people share the source so I can determine if sufficiently so? If it's [B]too[/B] much work I probably won't be, but running at half speed now is a fairly strong motivator.[/quote]

I hope that you are! I mostly run linux, but would find uses for the optimized version for windows too, if it were available. I'll email you the source, but might wait for Batalov to chime in first because he may have rolled his resume feature and other fixes into the optimized source, which I haven't done yet.

- ben.

mklasson 2009-03-30 13:22

[QUOTE=bsquared;167260]I hope that you are! I mostly run linux, but would find uses for the optimized version for windows too, if it were available. I'll email you the source, but might wait for Batalov to chime in first because he may have rolled his resume feature and other fixes into the optimized source, which I haven't done yet.[/QUOTE]

Excellent! Much obliged.

FactorEyes 2009-03-30 18:06

[QUOTE=jasonp;167254]There is another version of the Franke/Kleinjung siever that includes a lot of 64-bit optimizations; several here have the source for it. The changes have not been folded into GGNFS ...[/QUOTE]

I have the source somewhere, but could not build it for the life of me. It seemed to require a tool or two that I had trouble finding on the rpm sites. Some sort of text-processing tool was in the compile chain for the asm.

frmky built Linux 64-bit executables from this code and handed them around a year or so back, to my eternal gratitude.

:bow:

I'd love Windows executables, but it would also be nice to fold the source into GGNFS in such a way as to make them compilable within Linux, in a straightforward way, which would ease the path to a 64-bit Windows executable.

Is there a licensing issue with the 64-bit code, or is it just too much work?

I would love to understand the Franke lattice-siever code, but it is written at a reading comprehension level somewhat above mine. Dang.

mklasson 2009-03-30 18:27

[QUOTE=FactorEyes;167293]I have the source somewhere, but could not build it for the life of me. It seemed to require a tool or two that I had trouble finding on the rpm sites. Some sort of text-processing tool was in the compile chain for the asm.

frmky built Linux 64-bit executables from this code and handed them around a year or so back, to my eternal gratitude.

:bow:[/quote]

Oh joy, that sounds promising. :lol: Ah well, I'll have a look at least... Ready when you are, Ben.

bsquared 2009-03-30 18:58

[quote=mklasson;167298]Oh joy, that sounds promising. :lol: Ah well, I'll have a look at least... Ready when you are, Ben.[/quote]

I sent the source to your gmail account - let me know if you didn't recieve it. It should be modified to at least compile in linux, at least with the 2.6.26 kernel and gcc 4.2.3. But it has not been merged with the latest SVN code AFAIK, and so probably differs somewhat in usability compared with that. On that note, [URL="http://www.mersenneforum.org/member.php?u=8517"]joral[/URL] had told me last fall that he was going to try to get the optimizations into SVN, but I suspect this is a pretty big task else it would be done already. I certainly don't have the time or knowledge to do so...

joral 2009-04-01 01:55

A couple months ago, my main 64-bit box suffered a catastrophic hard drive failure, so I haven't been able to complete it. It is definitely a good bit of work though. I hope to get back to it soon.

mklasson 2009-04-01 18:46

I got hopeful after seeing there were 64-bit liblasieve*.a libs with the asm already in them.

Unfortunately they don't seem to be in a format msvc accepts:
[code]
2>../../../liblasieve.a : fatal error LNK1107: invalid or corrupt file: cannot read at 0xE064
[/code]
0xE064 is the end of the file. Does anyone with more cross-cultural experience than me know what the problem might be? It looks very much like a normal .lib, but presumably there's some minor incompatibility somewhere.

[QUOTE=FactorEyes;167293]I would love to understand the Franke lattice-siever code, but it is written at a reading comprehension level somewhat above mine. Dang.[/QUOTE]

Alas, mine too. :huh: :cry:

The C code didn't seem to require too many changes, but I shouldn't say too much yet... I will be very happy if I can somehow get a working 64-bit .exe out of this, but anything more than that might require a more masochistically inclined soul than mine. On the other hand, the .asm files don't seem quite as terrifying anymore once I learned of m4. So maybe there's hope for me still.

In any case, I'm off for a week come tomorrow. If my prayers are answered a working version will miraculously have appeared here by the time I get back. Pretty please? With sugar on top?

joral 2009-04-03 02:12

*grumble* looks like I'll have to redo what I had done. Along those lines, could someone please resend me the 64-bit asm code? I lost the original email in my HD crash. This time, I have a place to back it up.


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

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