mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2017-09-30, 06:30   #1
usermode
 
Sep 2017

10012 Posts
Default msieve153 GPU and GTX 10 Series problem

hello, all!
I'm new in factoring and try to use tutorial from:
http://gilchrist.ca/jeff/factoring/n...ers_guide.html

I configure factmsieve.py, binaries and try.
On CPU msieve_153 all is good - all cores and threads are loaded on 100%.
But I have GTX 1060 and want to use also CUDA power with CPU.
I'm enable in script CUDA = True and while run example I have error in log and stoped process:
Quote:
Sat Sep 30 09:04:02 2017 -> factmsieve.py (v0.86)
Sat Sep 30 09:04:02 2017 -> This is client 1 of 1
Sat Sep 30 09:04:02 2017 -> Running on 4 Cores with 2 hyper-threads per Core
Sat Sep 30 09:04:02 2017 -> Working with NAME = example
Sat Sep 30 09:04:02 2017 -> Running polynomial selection ...
Sat Sep 30 09:04:02 2017 -> msieve -s example\example.dat -l example\example.log -i example\example.ini -nf example\example.fb -g 0 -v -np 1,4000 -t 4
Sat Sep 30 09:04:02 2017
Sat Sep 30 09:04:02 2017
Sat Sep 30 09:04:02 2017 Msieve v. 1.53 (SVN 1005)
Sat Sep 30 09:04:02 2017 random seeds: 4e7ed9c0 9c9f5908
Sat Sep 30 09:04:02 2017 factoring 2881039827457895971881627053137530734638790825166127496066674320241571446494762386620442953820735453 (100 digits)
Sat Sep 30 09:04:03 2017 searching for 15-digit factors
Sat Sep 30 09:04:03 2017 commencing number field sieve (100-digit input)
Sat Sep 30 09:04:03 2017 commencing number field sieve polynomial selection
Sat Sep 30 09:04:03 2017 polynomial degree: 4
Sat Sep 30 09:04:03 2017 max stage 1 norm: 1.58e+017
Sat Sep 30 09:04:03 2017 max stage 2 norm: 3.44e+015
Sat Sep 30 09:04:03 2017 min E-value: 8.85e-009
Sat Sep 30 09:04:03 2017 poly select deadline: 1317
Sat Sep 30 09:04:03 2017 time limit set to 0.37 CPU-hours
Sat Sep 30 09:04:03 2017 expecting poly E from 1.43e-008 to > 1.64e-008
Sat Sep 30 09:04:03 2017 searching leading coefficients from 1 to 4000
Sat Sep 30 09:04:03 2017 using GPU 0 (GeForce GTX 1060 6GB)
Sat Sep 30 09:04:03 2017 selected card has CUDA arch 6.1
any solution how to use last msieve gpu version with gtx 10XX?
usermode is offline   Reply With Quote
Old 2017-09-30, 14:01   #2
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

29×61 Posts
Default

Quote:
Originally Posted by usermode View Post
hello, all!
I'm new in factoring and try to use tutorial from:
http://gilchrist.ca/jeff/factoring/n...ers_guide.html

I configure factmsieve.py, binaries and try.
On CPU msieve_153 all is good - all cores and threads are loaded on 100%.
But I have GTX 1060 and want to use also CUDA power with CPU.
I'm enable in script CUDA = True and while run example I have error in log and stoped process:


any solution how to use last msieve gpu version with gtx 10XX?
Code:
Sat Sep 30 09:04:03 2017 using GPU 0 (GeForce GTX 1060 6GB)
Sat Sep 30 09:04:03 2017 selected card has CUDA arch 6.1
You are! It should complete the first step very quickly.
wombatman is online now   Reply With Quote
Old 2017-09-30, 14:12   #3
usermode
 
Sep 2017

32 Posts
Default

Quote:
Originally Posted by wombatman View Post
Code:
Sat Sep 30 09:04:03 2017 using GPU 0 (GeForce GTX 1060 6GB)
Sat Sep 30 09:04:03 2017 selected card has CUDA arch 6.1
You are! It should complete the first step very quickly.
Sorry, full error log not written, I record it from console screen:
https://www.upload.ee/image/7509258/err_log.jpg

Last fiddled with by usermode on 2017-09-30 at 14:13
usermode is offline   Reply With Quote
Old 2017-09-30, 16:26   #4
chris2be8
 
chris2be8's Avatar
 
Sep 2009

81E16 Posts
Default

I use in on Linux, not windows, and SVN 988 not SVN 1005 so I'm not in the same setup. But msieve needs to have the PTX file and the sortlib either in the working directory or to be told where to find them. I had to make my script add a symlink to the PTX file in the working directory and pass msieve a parameter saying where the sortlib is to make it work. Which took me a little while to work out. But it works nicely now.

First look in the directory msieve is installed in, there should be a file called Readme.nfs with instructions on how to use msieve for NFS in it, including how to use a GPU. You should also have some files called something like stage1_core_sm20.ptx in there. If they are missing you need to reinstall msieve with GPU support enabled to generate them.

Then try running a GPU job in that directory. If that works you just need to get factmsieve.py to pass msieve the right parameters to make it work in other places. But I don't know python so can't help there.

Chris
chris2be8 is offline   Reply With Quote
Old 2017-09-30, 17:47   #5
usermode
 
Sep 2017

910 Posts
Default

I try default settings, without .py script, with parameters:
msieve153_gpu -g 0 -v -np 1,4000 -t 4

and process failed with msieve gpu internal engine error:
CUDA_ERROR_FILE_NOT_FOUND

which file or argument is needed?

(Win7x64)

Last fiddled with by usermode on 2017-09-30 at 17:54
usermode is offline   Reply With Quote
Old 2017-10-01, 01:02   #6
swellman
 
swellman's Avatar
 
Jun 2012

1011111111002 Posts
Default

I'm not sure what's tripping you up - might be an older version of msieve code not built for the GTX 1060 card? There are several versions of msieve out there.

Try the following steps just to see if msieve will run and engage your GPU.

http://www.mersenneforum.org/showpos...0&postcount=12
swellman is offline   Reply With Quote
Old 2017-10-01, 05:15   #7
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

29×61 Posts
Default

Quote:
Originally Posted by usermode View Post
I try default settings, without .py script, with parameters:
msieve153_gpu -g 0 -v -np 1,4000 -t 4

and process failed with msieve gpu internal engine error:
CUDA_ERROR_FILE_NOT_FOUND

which file or argument is needed?

(Win7x64)
What PTX files are in the folder with msieve, and what files beginning with "sort_engine" are there as well?
wombatman is online now   Reply With Quote
Old 2017-10-01, 08:23   #8
usermode
 
Sep 2017

32 Posts
Default

swellman
I'm try, but have same error: CUDA_ERROR_FILE_NOT_FOUND, maybe some in my input was incorrect.

Quote:
Originally Posted by wombatman View Post
What PTX files are in the folder with msieve, and what files beginning with "sort_engine" are there as well?
I have default included files:
stage1_core_sm20.ptx
stage1_core_sm30.ptx
stage1_core_sm35.ptx

and dir "cub" with sort_engine.dll inside.

I can set, f.e. gpu_mem_mb=5500, but I don't understand what x argument is need to sortlib=x. If it passed to file, like, sortlib=sort.dat, then it not worked with same CUDA error.
In doc sayed what:
Quote:
By default, the library will attempt to load the sort engine that is
appropriate for your GPU, but this can be overriden with additional
arguments:

sortlib=X use GPU sorting library in file X
gpu_mem_mb=X use at most X megabytes of GPU memory
I think what msieve load defaults as well for used GPU. But I can't to use gpu version of msieve by default.
usermode is offline   Reply With Quote
Old 2017-10-01, 12:03   #9
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

1101110101012 Posts
Default

The memory use per GPU has an upper limit of 300MB so more than that will have no effect. The release of v1.53 needed a fix to compile the sort library for compute capability 5.0 devices; it's in the latest SVN
jasonp is offline   Reply With Quote
Old 2017-10-01, 12:20   #10
usermode
 
Sep 2017

118 Posts
Default

Quote:
Originally Posted by jasonp View Post
The memory use per GPU has an upper limit of 300MB so more than that will have no effect. The release of v1.53 needed a fix to compile the sort library for compute capability 5.0 devices; it's in the latest SVN
It's hard for me, I'm not work with VC compiler, and I don't understand how to fix it.
Any chances for me who can fix latest gpu msieve for the latest cuda devices?

Thanks to all, I will know.

Last fiddled with by usermode on 2017-10-01 at 12:22
usermode is offline   Reply With Quote
Old 2017-10-02, 03:32   #11
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

110111010012 Posts
Default

Try dropping both of these files into the same folder as your msieve executable. It might work for you as I think they're good for CC5.2 cards.
Attached Files
File Type: 7z sort_engine.7z (437.8 KB, 220 views)
wombatman is online now   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best 4XX series GPU siegert81 GPU Computing 47 2011-10-14 00:49
PR 4 # 33 -- The last puzzle from this series Wacky Puzzles 31 2006-09-14 16:17
An interesting series Citrix Math 0 2005-11-02 05:33
Another Series Gary Edstrom Puzzles 7 2003-07-03 08:32
Series Rosenfeld Puzzles 2 2003-07-01 17:41

All times are UTC. The time now is 01:16.


Sat Jul 17 01:16:12 UTC 2021 up 49 days, 23:03, 1 user, load averages: 1.48, 1.22, 1.30

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.