mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2014-01-25, 18:32   #254
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

10,753 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
That would be helpful. Ideally I would like to pass it the directory the .ptx files and the GPU sortlibs are in, and let it choose the right .ptx and sortlib for the GPU architecture from there. Eg pass it "gpudir=/home/chris/msieve-svn/trunk" and let it do the rest (obviously allowing for the sortlib being in the b40c subdir).

The dream is that if it isn't passed the parm it would look in the same dir msieve was in. So if my script calls it as /home/chris/msieve-svn/trunk/msieve it would look in /home/chris/msieve-svn/trunk for support files.

Chris
[aol]Me too !!!!????!!![/aol]
xilman is offline   Reply With Quote
Old 2014-01-25, 19:16   #255
VBCurtis
 
VBCurtis's Avatar
 
"Curtis"
Feb 2005
Riverside, CA

10010111111012 Posts
Default

Quote:
Originally Posted by chris2be8 View Post
I assume that means to sort data_file_name.ms by the score in the last field. Will the number of fields in each record be constant? Does anyone have sample sort parameters to do this?

I assume that for large problems (over 155 digits) I need to run something like:
msieve -np1 -nps 1,50000 -g 0 (and other parms as necessary)
sort -k 9 msieve.dat.ms | head -100 >msieve.dat.ms.cut
mv msieve.dat.ms msieve.dat.ms.orig
mv msieve.dat.ms.cut msieve.dat.ms
msieve -npr
Chris
The number of fields is 5 more than the degree of the poly. Your initial trials may be small enough to be degree 4, which would explain your "-k 9" vs 10 that I've always sorted by for degree-5 problems up to ~200 digits.

I find that setting stage2_norm= {default/20 to default/22} produces a hit rate from -nps that is about right for the root optimization; 100 or so hits per day. This saves me the step of having to do the sort, and keeps the .ms file size smaller by a factor of 100 or more.

If you use the -s flag to create your own file names, you can avoid the mv commands; when you run -npr step with "-s sortedfile" also, it looks for sortedfile.ms automatically; so whatever you write as the sorted file name can be set as the input file for -npr.
-Curtis
VBCurtis is offline   Reply With Quote
Old 2014-01-26, 16:36   #256
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2×1,039 Posts
Default

Following a few tests I've found I need to use:

sort -g -k 10 msieve.dat.ms | head 100

The -g tells sort the key field is a floating point number. This might be worth putting into Readme.nfs.

Just to confirm, smaller score is better so I want the head of the sorted list, not the tail. (Always check the obvious!)

Chris
chris2be8 is offline   Reply With Quote
Old 2014-01-26, 22:06   #257
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110101012 Posts
Default

Correct, the smaller size score is what you want.
jasonp is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Msieve 1.53 feedback xilman Msieve 149 2018-11-12 06:37
Msieve 1.50 feedback firejuggler Msieve 99 2013-02-17 11:53
Msieve 1.43 feedback Jeff Gilchrist Msieve 47 2009-11-24 15:53
Msieve 1.42 feedback Andi47 Msieve 167 2009-10-18 19:37
Msieve 1.41 Feedback Batalov Msieve 130 2009-06-09 16:01

All times are UTC. The time now is 00:51.


Sat Jul 17 00:51:10 UTC 2021 up 49 days, 22:38, 1 user, load averages: 1.69, 1.56, 1.43

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.