mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2021-07-18, 23:51   #1
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

411810 Posts
Default Will Msieve (SVN 1043) work with CUDA 11.4 and an Arch 3.0 GPU? No!

When I installed the toolkit and CUDA from scratch in Ubuntu 20.04, they claimed to be 10.1. Even "NVCC --version" and NVIDIA-smi both showed 10.1. However, somehow the 10.1 has upgraded to 11.4 at some point.

Msieve builds without errors and tries to run, but has the following trouble:
Code:
$ ./msieve -g 0 -np -v
Msieve v. 1.54 (SVN 1043M)
Sun Jul 18 19:42:28 2021
random seeds: f434fda4 55303c82
factoring 442481795557623688831895262327430539285948212813785834989707204563288336300056437057 (84 digits)
searching for 15-digit factors
commencing number field sieve (84-digit input)
commencing number field sieve polynomial selection
polynomial degree: 4
max stage 1 norm: 1.61e+14
max stage 2 norm: 3.32e+13
min E-value: 7.30e-08
poly select deadline: 59
time limit set to 0.02 CPU-hours
expecting poly E from 1.39e-07 to > 1.60e-07
searching leading coefficients from 1 to 3114368
using GPU 0 (NVS 510)
selected card has CUDA arch 3.0
cannot load library 'cub/sort_engine.so': cub/sort_engine.so: cannot open shared object file: No such file or directory
error: failed to load GPU sorting engine from "cub/sort_engine.so"
Is this a problem with Msieve or CUDA?

Last fiddled with by EdH on 2021-07-31 at 12:57
EdH is offline   Reply With Quote
Old 2021-07-19, 00:37   #2
RichD
 
RichD's Avatar
 
Sep 2008
Kansas

22·5·173 Posts
Default

You may have upgraded your software beyond the hardware supported driver levels. I've seen this before but don't recall the consequences. Others, more knowledgable, will give a better explanation.
RichD is offline   Reply With Quote
Old 2021-07-19, 03:50   #3
frmky
 
frmky's Avatar
 
Jul 2003
So Cal

2×3×7×53 Posts
Default

You need to copy over not only the msieve binary but also the built CUDA libraries in their directories. Create a cub directory and copy sort_engine.so from your build ./cub directory to that one.
frmky is offline   Reply With Quote
Old 2021-07-19, 12:47   #4
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·29·71 Posts
Default

Quote:
Originally Posted by frmky View Post
You need to copy over not only the msieve binary but also the built CUDA libraries in their directories. Create a cub directory and copy sort_engine.so from your build ./cub directory to that one.
Thanks. I'm running in the original build directory, but I see that there is no sort_engine.so anywhere in the sub/directories, so I guess it didn't get built.
EdH is offline   Reply With Quote
Old 2021-07-19, 14:00   #5
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

101616 Posts
Default

I manually ran the Makefile in the cub directory and now have sort_engine.so. I don't remember having to do that in the distant past and didn't note that step in the docs.

However, now I have a different error message:
Code:
. . .
using GPU 0 (NVS 510)
selected card has CUDA arch 3.0
deadline: 8640000 CPU-seconds per coefficient
error (line 1111): CUDA_ERROR_FILE_NOT_FOUND
"line 1111" in which file?
EdH is offline   Reply With Quote
Old 2021-07-19, 16:04   #6
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

2·29·71 Posts
Default

This is probably my answer:
Code:
$ make
"/usr/local/cuda-11.4/bin/nvcc" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -DSM300 -o sort_engine.so sort_engine.cu -Xptxas -v -Xcudafe -# -shared -Xcompiler -fPIC -Xcompiler -fvisibility=hidden -I"/usr/local/cuda-11.4/bin/..//include" -I. -O3  
nvcc fatal   : Unsupported gpu architecture 'compute_30'
make: *** [Makefile:67: sort_engine.so] Error 1
When I simply used "make" in the cub directory, it defaulted to sm_52, so it built the wrong .so. The "make" driven by the main Makefile probably called the cub Makefile as designed and that failed, but didn't provide an error I could catch in the displayed stream.
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outdated msieve build in Arch AUR Dylan14 Msieve 2 2020-09-27 18:49
msieve LA on CUDA frmky Msieve 3 2020-09-07 20:14
Might someone recall which revision of msieve still worked with CUDA 6.5 and arch 1.2? EdH Msieve 4 2016-11-26 20:44
Can anyone help me about msieve 1.53 with CUDA? Seto Msieve 8 2016-09-24 12:54
Help with msieve CUDA (C1060) toorandom Msieve 7 2012-11-28 17:37

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


Thu Dec 9 12:51:22 UTC 2021 up 139 days, 7:20, 0 users, load averages: 1.27, 1.54, 1.54

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.