![]() |
|
|
#232 |
|
(loop (#_fork))
Feb 2006
Cambridge, England
11001001101102 Posts |
Try looking for package nvidia-cuda-dev
I certainly have that installed on 13.10 on the machine that's currently running gpu-ecm; packages.ubuntu.com suggests it exists on 13.04 |
|
|
|
|
|
#233 |
|
Sep 2009
25×7×11 Posts |
I've installed packages nvidia-cuda-dev and cuda and all their pre-requisites and rebooted, but it still won't work because the nvidia driver module isn't loaded:
Code:
chris@4core ~/ecm-gpu/trunk $ ./test.gpuecm ./ecm GMP-ECM 7.0-dev [configured with GMP 5.1.3, --enable-asm-redc, --enable-gpu, --enable-assert] [ECM] Input number is 458903930815802071188998938170281707063809443792768383215233 (60 digits) FATAL: Module nvidia not found. GPU: Error: no active device. GPU: Error msg: no CUDA-capable device is detected Segmentation fault ############### ERROR ############### Expected return code 14 but got 139 chris@4core ~/ecm-gpu/trunk $ sudo modprobe nvidia FATAL: Module nvidia not found. This has passed from "interesting" to "educational" and is approaching "frustrating". Chris |
|
|
|
|
|
#234 |
|
Sep 2009
1001101000002 Posts |
I've finally got it working. The last problem was that Linux had loaded the nouveau driver (an open source driver for Nvidia cards) so the nvidia driver could not be used to access them. "lspci -v" shows which kernel driver is in use for a card.
To make the system use the nvidia driver I had to blacklist the nouveau driver by adding it to /etc/modprobe.d/blacklist.conf (this step may not be needed) and then run "update-initramfs -u" (this almost certainly is needed on Ubuntu based systems). After a reboot lspci -v showed the card was using the nvidia driver. Then ./test.gpuecm ./ecm succeeded. Running "make ecm-params; make" caused problems though. I backed out ecm-params.h and they went away. Other points that might help someone else installing it on Linux: Start with post 209. The password is also anonsvn. If you need a newer version of GMP get it from http://gmplib.org/. To compile with a newer version of GMP than the one installed on the system: Code:
./configure --enable-gpu=sm_21 --with-cuda=/usr/local/cuda --with-gmp-lib=home/chris/gmp-5.1.3/.libs --with-gmp-include=home/chris/gmp-5.1.3 | tee -a configure.out Get CUDA etc from https://developer.nvidia.com/cuda-downloads if you need it. Follow the getting started guide for Linux (especially to set PATH and LD_LIBRARY_PATH). This was definitely an "educational" experience. Chris |
|
|
|
|
|
#235 | |
|
Oct 2010
BF16 Posts |
Quote:
Code:
make ecm-params ./bench_mulredc >> ecm-params.h make Last fiddled with by Ralf Recker on 2014-01-20 at 18:01 |
|
|
|
|
|
|
#236 |
|
Sep 2009
9A016 Posts |
Thanks, that did it. Presumably the Makefile should be updated to do that when making ecm-params.
Chris |
|
|
|
|
|
#237 |
|
Sep 2009
25×7×11 Posts |
Would setting the GPU into persistence mode have any effect? The man page for nvidia=smi says:
Code:
Persistence Mode
A flag that indicates whether persistence mode is enabled for the GPU. Value is either "Enabled" or "Disabled". When persis‐
tence mode is enabled the NVIDIA driver remains loaded even when no active clients, such as X11 or nvidia-smi, exist. This min‐
imizes the driver load latency associated with running dependent apps, such as CUDA programs. For all CUDA-capable products.
Linux only.
Chris PS. Would it affect msieve polynomial selection either? |
|
|
|
|
|
#238 |
|
Jul 2003
So Cal
2,663 Posts |
Nothing significant. By default, Linux unloads the driver if nothing is using the card. When you then start a CUDA program, that program has to wait a short amount of time, probably about 0.5 seconds on one of my older machines, for the driver to load. This has a big effect only if you run a CUDA program many times and it has a short runtime. Otherwise, it doesn't really matter.
|
|
|
|
|
|
#239 |
|
Apr 2013
Germany
2×3×53 Posts |
Hi,
I'm currently investigating new applications for yoyo@home. We want to update the server code of yoyo@home in the future and this would give us the possibility to run optimized applications and also GPU applications. I already set up a test project for this with the yoyo@home ecm application. With my next step I would like to update ecm to a current version and also support a cuda enabled version. As I had trouble with my local cuda build system I would like to test with a working precompiled binary. Could someone provide me with one? Especially a windows one would be nice as I don't have a windows build system. |
|
|
|
|
|
#240 | |
|
"Victor de Hollander"
Aug 2011
the Netherlands
32×131 Posts |
Quote:
|
|
|
|
|
|
|
#241 |
|
I moo ablest echo power!
May 2013
3·619 Posts |
If somebody can help me figure out why I get the following errors, I can provide one:
Code:
Error 202 error LNK2001: unresolved external symbol __gmpn_mul_fft Error 204 error LNK2001: unresolved external symbol __gmpn_fft_best_k Last fiddled with by wombatman on 2014-06-06 at 15:57 |
|
|
|
|
|
#242 | |
|
Sep 2010
Scandinavia
3·5·41 Posts |
Quote:
I was under the impression that ECM on GPU was quite a bit more efficient than that. Last fiddled with by lorgix on 2014-06-06 at 17:25 Reason: typo |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Running CUDA on non-Nvidia GPUs | Rodrigo | GPU Computing | 3 | 2016-05-17 05:43 |
| Error in GMP-ECM 6.4.3 and latest svn | ATH | GMP-ECM | 10 | 2012-07-29 17:15 |
| latest SVN 1677 | ATH | GMP-ECM | 7 | 2012-01-07 18:34 |
| Has anyone seen my latest treatise? | davieddy | Lounge | 0 | 2011-01-21 19:29 |
| Latest version? | [CZ]Pegas | Software | 3 | 2002-08-23 17:05 |