mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2019-12-05, 19:27   #67
BfoX
 
Feb 2015

32 Posts
Default

try to use SVN 1005 and got error:
Code:
Msieve v. 1.53 (SVN 1005)
Fri Dec 06 00:25:41 2019
random seeds: 35e6e7a0 d0500745
factoring 2881039827457895971881627053137530734638790825166127496066674320241571
446494762386620442953820735453 (100 digits)
searching for 15-digit factors
commencing number field sieve (100-digit input)
commencing number field sieve polynomial selection
polynomial degree: 4
max stage 1 norm: 1.58e+017
max stage 2 norm: 3.44e+015
min E-value: 8.85e-009
poly select deadline: 1317
time limit set to 0.37 CPU-hours
expecting poly E from 1.43e-008 to > 1.64e-008
searching leading coefficients from 1 to 4000
using GPU 0 (GeForce GTX 1050 Ti)
selected card has CUDA arch 6.1
deadline: 5 CPU-seconds per coefficient
error (line 1116): CUDA_ERROR_FILE_NOT_FOUND
Msieve Error: return value 4294967295. Is CUDA enabled? Terminating...
BfoX is offline   Reply With Quote
Old 2019-12-09, 04:20   #68
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

3×1,163 Posts
Default

What card and CUDA version are you using? Do you run the binary from command line, from the directory above the one with the PTX files?
jasonp is offline   Reply With Quote
Old 2019-12-10, 15:58   #69
BfoX
 
Feb 2015

910 Posts
Default

using GPU 0 (GeForce GTX 1050 Ti) selected card has CUDA arch 6.1
win 8.1 x64
all ptx-file in same directory
run from python script
BfoX is offline   Reply With Quote
Old 2019-12-13, 09:50   #70
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

3×5×11×19 Posts
Default

Quote:
Originally Posted by BfoX View Post
using GPU 0 (GeForce GTX 1050 Ti) selected card has CUDA arch 6.1
win 8.1 x64
all ptx-file in same directory
run from python script
It sounds like the stage1_core_sm60.ptx file is missing. (or sm61 ?)

You will have to add that to the "make" file and rebuild or find another binary which includes this later ptx file.
RichD is offline   Reply With Quote
Old 2019-12-13, 12:58   #71
BfoX
 
Feb 2015

32 Posts
Default

Quote:
Originally Posted by RichD View Post
It sounds like the stage1_core_sm60.ptx file is missing. (or sm61 ?).

the card support a low version of the ptx-files.
BfoX is offline   Reply With Quote
Old 2019-12-13, 14:27   #72
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

1100001111112 Posts
Default

Quote:
Originally Posted by BfoX View Post
the card support a low version of the ptx-files.
I don't know how to tell msieve to use a lower version ptx-file.

Perhaps this thread is helpful or post your question/request there.
RichD is offline   Reply With Quote
Old 2019-12-17, 20:59   #73
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

2·17·97 Posts
Default

Quote:
Originally Posted by BfoX View Post
try to use SVN 1005 and got error:
Code:
Msieve v. 1.53 (SVN 1005)
Fri Dec 06 00:25:41 2019
random seeds: 35e6e7a0 d0500745
factoring 2881039827457895971881627053137530734638790825166127496066674320241571
446494762386620442953820735453 (100 digits)
searching for 15-digit factors
commencing number field sieve (100-digit input)
commencing number field sieve polynomial selection
polynomial degree: 4
max stage 1 norm: 1.58e+017
max stage 2 norm: 3.44e+015
min E-value: 8.85e-009
poly select deadline: 1317
time limit set to 0.37 CPU-hours
expecting poly E from 1.43e-008 to > 1.64e-008
searching leading coefficients from 1 to 4000
using GPU 0 (GeForce GTX 1050 Ti)
selected card has CUDA arch 6.1
deadline: 5 CPU-seconds per coefficient
error (line 1116): CUDA_ERROR_FILE_NOT_FOUND
Msieve Error: return value 4294967295. Is CUDA enabled? Terminating...
I had the same problem with a arch 7.5 card. In msieve's source file stage1_sieve_gpu.c file, starting at line 1106, is this code:

Code:
if (d->gpu_info->compute_version_major == 2) {
		CUDA_TRY(cuModuleLoad(&t->gpu_module, "stage1_core_sm20.ptx"))
	}
	else if (d->gpu_info->compute_version_major == 3) {
		if (d->gpu_info->compute_version_minor < 5)
			CUDA_TRY(cuModuleLoad(&t->gpu_module, "stage1_core_sm30.ptx"))
		else
			CUDA_TRY(cuModuleLoad(&t->gpu_module, "stage1_core_sm35.ptx"))
	}
	else if (d->gpu_info->compute_version_major >= 5) {
		CUDA_TRY(cuModuleLoad(&t->gpu_module, "stage1_core_sm50.ptx"))
	}
	else 
	{
	    printf("sorry, Nvidia doesn't want to support your card\n");
		exit(-1);
	}
Which for anything at or above compute capability 5 attempts to load stage1_core_sm50.ptx.

I tried the following, which gets past the error message but appears to hang once the card gets going:

1) edit gpu_sm.props in the build.cuda.vc15 directory to update the CC_major and CC_minor fields (mine were 7 and 5)
2) in visual studio, edit the stage1_core_sm property pages by adding compute_75,sm_75 to the Code Generation item of the CUDA C/C++ section (or in your case, I guess compute_61,sm_61)
3) rebuild

This will make a stage1_core_sm61.ptx file in the bin/ directory alongside the msieve.exe executable. You'll then have to rename to stage1_core_sm50.ptx for it to be loaded by the code above.

But, like I said, some step or another is still missing because the code now just hangs after starting the search.
bsquared is offline   Reply With Quote
Old 2020-08-30, 07:47   #74
Jarod
AKA Speedy51
 
Jarod's Avatar
 
Oct 2012
New Zealand

23×33 Posts
Default

Quote:
Originally Posted by VictordeHolland View Post
Windows 64bit builds using MSYS2/mingw64 of msieve SVN1028

Code:
gcc version 8.2.0 (Rev3, Built by MSYS2 project)
Built on a i7 3770 (IvyBridge)

make all WIN=1 WIN64=1 ECM=1 CUDA=0 NO_ZLIB=0 VBITS=64/128/256

I think I've included all the necessary .dlls, but do reply if you miss any. Very little testing done, but enjoy.

P.S. I've included zlib, since I like to keep the relations compressed (.gz) and don't want to unzip a few GBs of relations when I post-process NFS@home jobs.
Is SVN 1028 still the latest version of M Sleve for Windows 10 64-bit?
Thanks
Jarod

Last fiddled with by Jarod on 2020-08-30 at 07:48
Jarod is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newer milestone thread Uncwilly Data 3335 2020-10-26 01:00
Help needed - M77 232 917 celebration build jbpace Hardware 19 2018-01-10 16:32
Performance of cuda-ecm on newer hardware? fivemack GMP-ECM 14 2015-02-12 20:10
Newer msieves are slow on Core i7 mklasson Msieve 9 2009-02-18 12:58
Use of large memory pages possible with newer linux kernels Dresdenboy Software 3 2003-12-08 14:47

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

Wed Oct 28 00:23:27 UTC 2020 up 47 days, 21:34, 2 users, load averages: 1.47, 1.95, 1.94

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.