mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2011-01-20, 22:33   #540
jrk
 
jrk's Avatar
 
May 2008

3×5×73 Posts
Default

Quote:
Originally Posted by jrk View Post
Try building with CUDA=1
Also, please use the v1.48 release version of msieve instead of the interim SVN version you got. There was a lot of code-churn in this release, so some stuff might have been broken that was fixed prior to the finished release.
jrk is offline   Reply With Quote
Old 2011-01-20, 22:36   #541
firejuggler
 
firejuggler's Avatar
 
Apr 2010
Over the rainbow

19×137 Posts
Default

the main problem is that i do not know *how* to compile msieve. i'm on Win XP.

Quote:
>make -C 1.48 x86 ECM=1 CUDA=1

make: Entering directory `H:/Documents and Settings/Vincent/Mes documents/Téléchargements/msieve/msieve/tags/1.48'
gcc -D_FILE_OFFSET_BITS=64 -O3 -fomit-frame-pointer -march=k8 -DNDEBUG -D_LARGEF
ILE64_SOURCE -Wall -W -I. -Iinclude -Ignfs -Ignfs/poly -Ignfs/poly/stage1 -DHAV
E_GMP_ECM -I"$CUDA_PATHinclude" -DHAVE_CUDA -c -o common/filter/clique.o common/
filter/clique.c
In file included from include\msieve.h:24,
from include\common.h:18,
from common\filter\filter.h:23,
from common\filter\filter_priv.h:23,
from common/filter/clique.c:15:
include\util.h:26: windows.h: No such file or directory
include\util.h:27: process.h: No such file or directory
include\util.h:55: stdio.h: No such file or directory
include\util.h:56: stdlib.h: No such file or directory
include\util.h:57: string.h: No such file or directory
include\util.h:58: ctype.h: No such file or directory
include\util.h:59: stdarg.h: No such file or directory
include\util.h:60: time.h: No such file or directory
include\util.h:61: sys\types.h: No such file or directory
include\util.h:62: sys\stat.h: No such file or directory
include\util.h:64: inttypes.h: No such file or directory
include\util.h:69: math.h: No such file or directory
In file included from include\common.h:19,
from common\filter\filter.h:23,
from common\filter\filter_priv.h:23,
from common/filter/clique.c:15:
include\gmp_xface.h:19: gmp.h: No such file or directory
make: *** [common/filter/clique.o] Error 1
make: Leaving directory `H:/Documents and Settings/Vincent/Mes documents/Téléchargements/msieve/msieve/tags/1.48'
edit : ok, I realise that i need visual studio.

Last fiddled with by firejuggler on 2011-01-20 at 22:56
firejuggler is offline   Reply With Quote
Old 2011-01-20, 23:14   #542
jrk
 
jrk's Avatar
 
May 2008

3×5×73 Posts
Default

Quote:
Originally Posted by firejuggler View Post
the main problem is that i do not know *how* to compile msieve. i'm on Win XP.

Code:
include\gmp_xface.h:19: gmp.h: No such file or directory
edit : ok, I realise that i need visual studio.
You need GMP installed for msieve to build. I'm not a Windows user, so can't detail the steps you need, but perhaps others can.

Brian Gladman maintains the Visual Studio (2010) build files for msieve so it should be able to build in VS without too much trouble.
jrk is offline   Reply With Quote
Old 2011-01-20, 23:36   #543
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22×7×19 Posts
Default

Provided you have built MPIR, Visual Studio 2010 will build the non-CUDA version of msieve 'out of the box'. The free Visual Studio C++ Express 2010 can build msieve for win32 and, if the free Windows 7.1 SDK is installed, for x64 as well.

The CUDA version of msieve can only be built with the full Visual Studio 2010 product and also requires Nvidia Parallel Nsight.

Brian

Last fiddled with by Brian Gladman on 2011-01-20 at 23:52
Brian Gladman is offline   Reply With Quote
Old 2011-01-21, 00:00   #544
firejuggler
 
firejuggler's Avatar
 
Apr 2010
Over the rainbow

A2B16 Posts
Default

As I can't afford it, i'll guess i'll wait for someone to compile it for me. Or continue to use 1.44 gpu. Or try again tommorow.
firejuggler is offline   Reply With Quote
Old 2011-01-21, 00:28   #545
jrk
 
jrk's Avatar
 
May 2008

100010001112 Posts
Default

Actually, aren't there already v1.48 Windows builds (with and without CUDA) on the SF files page?

Yes, see here: http://sourceforge.net/projects/msie.../Msieve v1.48/

The Windows CUDA build is in msieve148_gpu.zip and the non-CUDA build is in msieve148.zip. The CUDA build has both the regular and "fermi-tuned" GPU kernels available, so use what you need.
jrk is offline   Reply With Quote
Old 2011-01-21, 00:51   #546
firejuggler
 
firejuggler's Avatar
 
Apr 2010
Over the rainbow

19×137 Posts
Default

Ah. Thank you. I didn't notice that page (up till now i only seen 'normal' 1.48) . Many, many thanks

Last fiddled with by firejuggler on 2011-01-21 at 00:56
firejuggler is offline   Reply With Quote
Old 2011-03-13, 09:37   #547
em99010pepe
 
em99010pepe's Avatar
 
Sep 2004

2×5×283 Posts
Default

Under your script Brian, what's the relation between polynomial search time with the composite size?

Thank you.

Carlos
em99010pepe is offline   Reply With Quote
Old 2011-03-15, 11:19   #548
Brian Gladman
 
Brian Gladman's Avatar
 
May 2008
Worcester, United Kingdom

22·7·19 Posts
Default

If I recall correctly, I didn't intentionally change the way this is done in the original Perl script so it should be the same as it used to be. I didn't look in any detail at the sematics of the original Perl so I can't answer your question without going back and analysing how this works.
Brian Gladman is offline   Reply With Quote
Old 2011-03-15, 16:33   #549
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110101112 Posts
Default

Unless the scripts force a shutdown early, the internal time limit for poly selection is a linear interpolation between the entries of the following table.

Note that there is no consideration for parallel poly selection or for the number of sieving machines that are waiting for the poly selection to complete. Also, if you run with '-np X,Y' to search for a polynomial in a particular range, then there is no limit on the time spent (but a limit on the amount of time given to each of the leading coefficients between X and Y).
Code:
static const poly_deadline_t time_limits[] = {
	{MIN_NFS_BITS, 4 * 60},
	{304, 8 * 60},
	{320, 15 * 60},
	{348, 30 * 60},
	{365, 1 * 3600},
	{383, 2 * 3600},
	{399, 4 * 3600},
	{416, 8 * 3600},
	{433, 16 * 3600},
	{449, 32 * 3600},
	{466, 64 * 3600},
	{482, 100 * 3600},
	{498, 200 * 3600},
	{514, 300 * 3600},
};
jasonp is offline   Reply With Quote
Old 2011-03-15, 17:52   #550
chris2be8
 
chris2be8's Avatar
 
Sep 2009

2×7×149 Posts
Default

What would you recommend for the ratio between time searching for polynomials and time sieving? I'm doing a c145 (with my trick to pipeline polynomial selection), stage 1 said "searching leading coefficients from 1 to 1614000" and it's got to 3132 in 1 day. Which will take much longer to reach 1614000 that the sieving will.

It also said "time limit set to 93.25 hours" but does it stop then when just running stage 1?

I've also noticed that stage 1 has used 7 CPU hours in 1 day, stage 2 used 1 day per day. This is on a dual core AMD.

Chris K
chris2be8 is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Msieve & ggnfs on MacOS xilman Msieve 8 2017-05-20 00:12
Factorizing with MSIEVE, GGNFS & Factmsieve.py Romuald Msieve 24 2015-11-09 20:16
Infinite loop for ggnfs or msieve Greebley Aliquot Sequences 4 2013-02-06 19:28
Error running GGNFS+msieve+factmsieve.py D. B. Staple Factoring 6 2011-06-12 22:23
A new driver? (or type of driver?) 10metreh Aliquot Sequences 3 2010-02-15 15:57

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


Tue Jul 27 08:12:40 UTC 2021 up 4 days, 2:41, 0 users, load averages: 1.84, 1.61, 1.68

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.