mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware > GPU Computing

Reply
 
Thread Tools
Old 2018-01-05, 18:14   #12
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

3×53×29 Posts
Default

Quote:
Originally Posted by daxmick View Post
Do you have source code? The link http://www.mersenneforum.org/mfaktc/ doesn't provide source (and it's the only link I know of for getting mfaktc code).
We cross-posted. The source code is in http://www.mersenneforum.org/mfaktc/...tc-0.21.tar.gz
chalsall is online now   Reply With Quote
Old 2018-01-05, 18:29   #13
daxmick
 
daxmick's Avatar
 
Feb 2014

22×3×7 Posts
Default

Quote:
Originally Posted by chalsall View Post
We cross-posted. The source code is in http://www.mersenneforum.org/mfaktc/...tc-0.21.tar.gz
Thank you! It would be nice if this URL was in the Sticky post for mfaktc, FYI.
daxmick is offline   Reply With Quote
Old 2018-01-05, 19:45   #14
TheJudger
 
TheJudger's Avatar
 
"Oliver"
Mar 2005
Germany

100010110012 Posts
Default

For the precompiled binaries there is no need to have CUDA toolkit installed. All you need is a sufficient driver version. Is the CUDA runtime library in the lib/ subdirectory?
What GPU do you have? That binary won't work with Pascal generation carfs (e.g. Geforce 10x0) because of the old CUDA version.

If you have CUDA toolkit already installed: it is not a big deal to compile the sources.
Just edit the Makefile:
  • remove/comment the two lines with "--generate-code arch=compute_11,code=sm_11" and "--generate-code arch=compute_20,code=sm_20"
  • add a line with "--generate-code arch=compute_60,code=sm_60" for Pascal generation cards

And run
Code:
make
Oliver
TheJudger is offline   Reply With Quote
Old 2018-01-05, 19:54   #15
daxmick
 
daxmick's Avatar
 
Feb 2014

8410 Posts
Default

Quote:
Originally Posted by chalsall View Post
We cross-posted. The source code is in http://www.mersenneforum.org/mfaktc/...tc-0.21.tar.gz
I downloaded, extracted the source. I tried to try to "make" but got errors.

Code:
daxm@ultraman:/usr/src/mfaktc-master/src$ make
gcc -Wall -Wextra -O2 -I/usr/local/cuda/include/ -malign-double -funroll-all-loops -c sieve.c -o sieve.o
sieve.c: In function ‘sieve_init_class’:
sieve.c:202:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if((prime_base[j] != exp) && \
                       ^~
sieve.c:248:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if(k < 0 || k >= p || check != (p-1))
                                 ^~
sieve.c: In function ‘sieve_candidates’:
sieve.c:400:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(;i<(SIEVE_SIZE&0xFFFFFFE0) && k<(ktab_size-33);i+=32) // thirty-three!!!
           ^
gcc -Wall -Wextra -O2 -I/usr/local/cuda/include/ -malign-double -c timer.c -o timer.o
gcc -Wall -Wextra -O2 -I/usr/local/cuda/include/ -malign-double -c parse.c -o parse.o
gcc -Wall -Wextra -O2 -I/usr/local/cuda/include/ -malign-double -c read_config.c -o read_config.o
read_config.c:22:10: fatal error: cuda_runtime.h: No such file or directory
 #include <cuda_runtime.h>
          ^~~~~~~~~~~~~~~~
compilation terminated.
Makefile:58: recipe for target 'read_config.o' failed
make: *** [read_config.o] Error 1
I did a search of my filesystem for cuda_runtime.h and found nothing.
I'm guessing that mfaktc needs updated to support CUDA 9?
daxmick is offline   Reply With Quote
Old 2018-01-05, 20:02   #16
daxmick
 
daxmick's Avatar
 
Feb 2014

22×3×7 Posts
Default

Quote:
Originally Posted by TheJudger View Post
For the precompiled binaries there is no need to have CUDA toolkit installed. All you need is a sufficient driver version. Is the CUDA runtime library in the lib/ subdirectory?
What GPU do you have? That binary won't work with Pascal generation carfs (e.g. Geforce 10x0) because of the old CUDA version.

If you have CUDA toolkit already installed: it is not a big deal to compile the sources.
Just edit the Makefile:
  • remove/comment the two lines with "--generate-code arch=compute_11,code=sm_11" and "--generate-code arch=compute_20,code=sm_20"
  • add a line with "--generate-code arch=compute_60,code=sm_60" for Pascal generation cards

And run
Code:
make
Oliver

I cross-posted. Let me try to answer this now. :-)

I have a GeForce GTX950 (?) I think. Maybe it is a 850. I'll have to double check.
daxmick is offline   Reply With Quote
Old 2018-01-05, 20:26   #17
chalsall
If I May
 
chalsall's Avatar
 
"Chris Halsall"
Sep 2002
Barbados

1087510 Posts
Default

Quote:
Originally Posted by daxmick View Post
I downloaded, extracted the source. I tried to try to "make" but got errors. I did a search of my filesystem for cuda_runtime.h and found nothing.
Thank you for your perseverance. In all honesty, I'm at a bit of a loss. This should be easier.

I ran this query on one of my machines, and got this result:
Code:
[chalsall@samba2 mfaktc]$ rpm -qf /usr/local/cuda-7.5/targets/x86_64-linux/include/cuda_runtime.h
cuda-cudart-dev-7-5-7.5-18.x86_64
Does that help at all?
chalsall is online now   Reply With Quote
Old 2018-01-05, 21:13   #18
daxmick
 
daxmick's Avatar
 
Feb 2014

5416 Posts
Default

Quote:
Originally Posted by chalsall View Post
Thank you for your perseverance. In all honesty, I'm at a bit of a loss. This should be easier.
It should be I thanking you all for helping me! I REALLY want to get this to work and I'm sorry that I'm being such a problem. Though I work in Linux every day I don't build from scratch that often so my "skillz" are a bit rusty.

I'm going to go back to basics here and try to re-install the CUDA SDK and drivers and then try again.

All told I *think* I'm getting closer! :-)
daxmick is offline   Reply With Quote
Old 2018-01-05, 21:20   #19
daxmick
 
daxmick's Avatar
 
Feb 2014

22×3×7 Posts
Default

Quote:
Originally Posted by daxmick View Post
I cross-posted. Let me try to answer this now. :-)

I have a GeForce GTX950 (?) I think. Maybe it is a 850. I'll have to double check.
I have a GeForce GTX 950:
Code:
daxm@ultraman:~/Downloads$ lspci | grep -i nvidia
01:00.0 VGA compatible controller: NVIDIA Corporation GM206 [GeForce GTX 950] (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 0fba (rev a1)

Last fiddled with by daxmick on 2018-01-05 at 21:20
daxmick is offline   Reply With Quote
Old 2018-01-05, 21:50   #20
daxmick
 
daxmick's Avatar
 
Feb 2014

22·3·7 Posts
Default

Woot! Success! The "-st" option is now running TF!

What did I do?
1. I followed the instructions to install CUDA 9.1: https://developer.nvidia.com/cuda-do..._type=deblocal
2. I rebooted.

Honestly I think it was #2 that did the trick. Prior to rebooting I issued the command 'nvidia-smi' and got an error. After reboot that command started working again.

Time to go get some Assignments! I'm so excited!
daxmick is offline   Reply With Quote
Old 2018-01-05, 22:01   #21
daxmick
 
daxmick's Avatar
 
Feb 2014

22×3×7 Posts
Default

Hi HO. hi ho. Hi Ho, Hi Ho; its off to work I go...
Click image for larger version

Name:	GPU stats.png
Views:	169
Size:	63.9 KB
ID:	17485
daxmick is offline   Reply With Quote
Old 2018-01-05, 22:03   #22
daxmick
 
daxmick's Avatar
 
Feb 2014

10101002 Posts
Default

Am I getting too excited over this? I've never done anything "GPU computing" related before.

A HUGE thank you to all of you who helped me work through my woes.
daxmick is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation of GGNFS LegionMammal978 Msieve 17 2017-01-20 19:49
GMP-ECM - installation - how to compile - Ubuntu 15 ThomRuley GMP-ECM 2 2017-01-06 16:54
installation of OS trouble wildrabbitt Linux 5 2015-12-22 16:51
Don't know where installation folder went jinydu Information & Answers 10 2009-10-14 01:29
GMP-ECM 6.2-rc1 - installation under MinGW failed Andi47 GMP-ECM 5 2008-04-30 17:46

All times are UTC. The time now is 01:29.


Fri Dec 9 01:29:41 UTC 2022 up 112 days, 22:58, 0 users, load averages: 1.60, 1.38, 1.17

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

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔