![]() |
msieve153 GPU and GTX 10 Series problem
hello, all!
I'm new in factoring and try to use tutorial from: [url]http://gilchrist.ca/jeff/factoring/nfs_beginners_guide.html[/url] 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[/QUOTE] any solution how to use last msieve gpu version with gtx 10XX? |
[QUOTE=usermode;468863]hello, all!
I'm new in factoring and try to use tutorial from: [url]http://gilchrist.ca/jeff/factoring/nfs_beginners_guide.html[/url] 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?[/QUOTE] [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[/CODE] You are! It should complete the first step very quickly. |
[QUOTE=wombatman;468886][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[/CODE]You are! It should complete the first step very quickly.[/QUOTE] Sorry, full error log not written, I record it from console screen: [URL]https://www.upload.ee/image/7509258/err_log.jpg[/URL] |
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 |
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) |
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. [url]http://www.mersenneforum.org/showpost.php?p=444360&postcount=12[/url] |
[QUOTE=usermode;468902]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)[/QUOTE] What PTX files are in the folder with msieve, and what files beginning with "sort_engine" are there as well? |
[B]swellman[/B]
I'm try, but have same error: CUDA_ERROR_FILE_NOT_FOUND, maybe some in my input was incorrect. [QUOTE=wombatman;468937]What PTX files are in the folder with msieve, and what files beginning with "sort_engine" are there as well?[/QUOTE] 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 [/QUOTE] I think what msieve load defaults as well for used GPU. But I can't to use gpu version of msieve by 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
|
[QUOTE=jasonp;468949]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[/QUOTE]
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. |
1 Attachment(s)
Try dropping both of these files into the same folder as your msieve executable. It might work for you as I [I]think[/I] they're good for CC5.2 cards.
|
| All times are UTC. The time now is 01:16. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.