Register FAQ Search Today's Posts Mark Forums Read

 2015-11-10, 17:18 #1 chris2be8     Sep 2009 3×11×73 Posts GPU upgrade Hello, My GTX 560 Ti has died, one of the fans won't turn (it's stiff when pushed by hand). So I decided to get a new GPU, a GTX 970 which should give a nice speedup. I've got the new card installed OK, and the system can see it. But I need to upgrade the CUDA version to one that supports it, which may well involve upgrading Linux on the system as well. If anyone else has a GTX 970 (or similar) running under Linux what CUDA and Linux versions do you use? I'm asking now in case a straightforward upgrade doesn't work. When I eventually get it working I'll post some figures for how fast it runs ECM compared with the 560. Chris
 2015-11-10, 17:34 #2 fivemack (loop (#_fork))     Feb 2006 Cambridge, England 11001001101102 Posts I'll be working this out (under ubuntu-15.10) probably this evening if I'm awake enough - the fans on my GTX580 stopped turning, and the GTX970 arrived yesterday but I spent the evening playing bassoon in the band rather than computer-fettling.
 2015-11-10, 18:18 #3 Mark Rose     "/X\(‘-‘)/X\" Jan 2013 1011101011102 Posts You'll need driver version at least 352.
2015-11-10, 20:01   #4
chris2be8

Sep 2009

3×11×73 Posts

Quote:
 Originally Posted by fivemack I'll be working this out (under ubuntu-15.10) probably this evening if I'm awake enough - the fans on my GTX580 stopped turning, and the GTX970 arrived yesterday but I spent the evening playing bassoon in the band rather than computer-fettling.
You will probably beat me to it. The system runs Linux Mint 15 which is Ubuntu 13.04 under the covers, and Nvidia don't support a new enough CUDA version on that. So I'll have to upgrade Linux as well (it's due an upgrade anyway).

I'm currently backing up my home dir to another system so I can wipe the system and reinstall Linux if necessary, But the backup probably won't finish this evening (it has lots of small files to copy).

Chris

 2015-11-11, 01:39 #5 jwaltos   152C16 Posts I've been running 970's under Mageia 5; Cuda 6.5 comes with it. This is one of the simplest distros, in terms of maintenance and use, I have come across. You can also install directly from Nvidia by choosing the Fedora distro (which will run under Mageia). I have used 7.0 rc without issue. Last fiddled with by jwaltos on 2015-11-11 at 01:50
2015-11-12, 22:24   #6
chris2be8

Sep 2009

3·11·73 Posts

Quote:
 Originally Posted by chris2be8 When I eventually get it working I'll post some figures for how fast it runs ECM compared with the 560.
And here they are:
Code:
chris@4core:~/ggnfs/trunk/tests/m1237_71> time /home/chris/ecm.2741/trunk/ecm -gpu -v -save m1237_71.save 43e6 1 <m1237_71.ini
GMP-ECM 7.0-dev [configured with GMP 5.1.3, --enable-asm-redc, --enable-gpu, --enable-assert] [ECM]
Running on 4core
Input number is 99052130215713425314087719653057747277957246285384978505438516882197068613093361177397394753911498996712838591246881850583816273177651735584539031515037041923006993059932075662627900091316733023818001962039482491 (212 digits)
Using MODMULN [mulredc:0, sqrredc:1]
Computing batch product (of 62034615 bits) of primes below B1=43000000 took 1795ms
GPU: compiled for a NVIDIA GPU with compute capability 2.1.
GPU: will use device 0: GeForce GTX 970, compute capability 5.2, 13 MPs.
GPU: Selection and initialization of the device took 6ms
Using B1=43000000, B2=1, sigma=3:556142369-3:556142784 (416 curves)
dF=0, k=0, d=0, d2=0, i0=0
Expected number of curves to find a factor of n digits:
35      40      45      50      55      60      65      70      75      80
621     3658    24066   174580  1382162 1.2e+07 1.1e+08 9.9e+08 5.2e+09 Inf
Computing 416 Step 1 took 592115ms of CPU time / 6418495ms of GPU time
Throughput: 0.065 curves by second (on average 15429.07ms by Step 1)
Expected time to find a factor of n digits:
35      40      45      50      55      60      65      70      75      80
2.66h   15.68h  4.30d   31.18d  246.82d 5.79y   53.08y  483.26y 2530y   Inf
Peak memory usage: 37209MB

real    107m0.765s
user    9m53.962s
sys     2m16.343s
The GTX 560 Ti took just over two hours to do 256 curves against the same number. So the GTX 970 is a bit disappointing, I'd hoped for a bigger speedup.

That run was before running make ecm-params but I'd be surprised if that made much difference.

Chris

2015-11-12, 23:02   #7
Mark Rose

"/X\(‘-‘)/X\"
Jan 2013

2×5×13×23 Posts

Quote:
 Originally Posted by chris2be8 The GTX 560 Ti took just over two hours to do 256 curves against the same number. So the GTX 970 is a bit disappointing, I'd hoped for a bigger speedup. That run was before running make ecm-params but I'd be surprised if that made much difference. Chris
So it scales like TF scales. The 5xx card are particularly good at that.

 2015-11-13, 16:47 #8 chris2be8     Sep 2009 96916 Posts After running "make ecm-params;./bench_mulredc >> ecm-params.h;make" it sped up to about 1 hour 25 minutes to do stage 1. Which was a pleasant surprise. I then noticed I'd configured it with --enable-gpu=sm_21 which is for a NVIDIA GPU of compute capability 2.1. But the 970 should support compute capability 3.0 if I configure ecm with --enable-gpu=sm_30. I've rebuilt ecm with that, but not tested it yet. Once I've finished ecm prep for 1237^71-1 (ETA tomorrow morning) I'll try out CC 3.0. The delay is that I need a quiet system to run make ecm-params;./bench_mulredc >> ecm-params.h. Does that actually use the GPU? If not the current ecm-params.h would be fine. Chris
 2015-11-14, 17:05 #9 chris2be8     Sep 2009 3·11·73 Posts I was about to rebuild ecm with --enable-gpu=sm_30.when I looked at the source for the configure script and found it also supports --enable-gpu=sm_35. So I built ecm with that enabled. But the result was disappointing: Code: `chris@4core:~/ggnfs/trunk/tests/m1237_71> \time -v /home/chris/ecm.sm35/trunk/ecm -gpu -v -save m1237_71.save 43e6 1

 Similar Threads Thread Thread Starter Forum Replies Last Post Joe O Sierpinski/Riesel Base 5 2 2010-12-05 15:14 ixfd64 mersennewiki 2 2009-05-21 18:52 jasong Factoring 5 2005-09-09 19:26 crash893 Hardware 4 2002-09-26 06:27 johnymccarthy Software 13 2002-09-26 05:08

All times are UTC. The time now is 06:39.

Thu Dec 8 06:39:36 UTC 2022 up 112 days, 4:08, 0 users, load averages: 0.89, 0.99, 0.94